Home
last modified time | relevance | path

Searched refs:Test (Results 1 – 25 of 5701) sorted by relevance

12345678910>>...229

/llvm-project/libcxx/test/std/containers/views/mdspan/extents/
H A DCtorTestCombinations.h42 template <class E, class Test, class AllExtents> in test_construction()
45 Test::template test_construction<E>(all_ext, all_ext, std::make_index_sequence<E::rank()>()); in test_construction()
57 Test::template test_construction<E>(all_ext, dyn_ext, std::make_index_sequence<E::rank_dynamic()>()); in test_construction()
60 template <class T, class TArg, class Test> in test()
64 test_construction<std::extents<T>, Test>(std::array<TArg, 0>{}); in test()
66 test_construction<std::extents<T, 3>, Test>(std::array<TArg, 1>{3}); in test()
67 test_construction<std::extents<T, D>, Test>(std::array<TArg, 1>{3}); in test()
69 test_construction<std::extents<T, 3, 7>, Test>(std::array<TArg, 2>{3, 7}); in test()
70 test_construction<std::extents<T, 3, D>, Test>(std::array<TArg, 2>{3, 7}); in test()
71 test_construction<std::extents<T, D, 7>, Test>(st in test()
[all...]
/llvm-project/llvm/unittests/Transforms/IPO/
H A DFunctionSpecializationTest.cpp40 class FunctionSpecializationTest : public testing::Test {
184 Cost Test = Visitor.getCodeSizeSavingsForArg(F->getArg(0), One); in TEST_F()
185 EXPECT_EQ(Test, Ref); in TEST_F()
186 EXPECT_TRUE(Test > 0); in TEST_F()
191 Test = Visitor.getCodeSizeSavingsForArg(F->getArg(1), One); in TEST_F()
192 EXPECT_EQ(Test, Ref); in TEST_F()
193 EXPECT_TRUE(Test > 0); in TEST_F()
200 Test = Visitor.getCodeSizeSavingsForArg(F->getArg(2), One); in TEST_F()
201 EXPECT_EQ(Test, Ref); in TEST_F()
202 EXPECT_TRUE(Test > in TEST_F()
175 Bonus Test = Visitor.getSpecializationBonus(F->getArg(0), One); TEST_F() local
242 Bonus Test = Visitor.getSpecializationBonus(F->getArg(0), One); TEST_F() local
308 Bonus Test = Visitor.getSpecializationBonus(F->getArg(0), One); TEST_F() local
376 Bonus Test = Visitor.getSpecializationBonus(F->getArg(0), One); TEST_F() local
[all...]
/llvm-project/clang-tools-extra/clangd/unittests/
H A DSelectionTests.cpp29 Annotations Test(MarkedCode); in makeSelectionTree() local
30 switch (Test.points().size()) { in makeSelectionTree()
32 unsigned Offset = cantFail(positionToOffset(Test.code(), Test.point())); in makeSelectionTree()
39 cantFail(positionToOffset(Test.code(), Test.points()[0])), in makeSelectionTree()
40 cantFail(positionToOffset(Test.code(), Test.points()[1]))); in makeSelectionTree()
602 Annotations Test(C.Code); in TEST() local
605 TU.Code = std::string(Test.code()); in TEST()
614 if (Test.ranges().empty()) { in TEST()
626 EXPECT_EQ(nodeRange(T.commonAncestor(), AST), Test.range()) in TEST()
700 Annotations Test(C); in TEST() local
[all …]
H A DDiagnosticsTests.cpp157 Annotations Test(R"cpp( in TEST() local
178 auto TU = TestTU::withCode(Test.code()); in TEST()
183 AllOf(Diag(Test.range("range"), in TEST()
186 withFix(Fix(Test.range("insertstar"), "*", "insert '*'"))), in TEST()
188 AllOf(Diag(Test.range("typo"), in TEST()
192 Fix(Test.range("typo"), "foo", "change 'go\\…' to 'foo'")), in TEST()
194 withNote(Diag(Test.range("decl"), "'foo' declared here"))), in TEST()
198 AllOf(Diag(Test.range("semicolon"), "expected ';' after expression"), in TEST()
199 withFix(Fix(Test.range("semicolon"), ";", "insert ';'"))), in TEST()
201 Diag(Test in TEST()
220 Annotations Test(R"cpp( TEST() local
235 Annotations Test("[[void]] main() {} // error-ok"); TEST() local
251 Annotations Test(R"cpp( TEST() local
263 Annotations Test(R"cpp( TEST() local
301 Annotations Test(R"cpp( TEST() local
363 Annotations Test(R"cpp( TEST() local
949 Annotations Test(R"cpp( TEST() local
1060 Annotations Test(R"cpp( TEST() local
1081 Annotations Test(R"cpp( TEST() local
1093 Annotations Test("#pragma clang [[system_header]]\n"); TEST() local
1320 Annotations Test(R"cpp(// error-ok TEST() local
1351 Annotations Test(R"cpp(// error-ok TEST() local
1432 Annotations Test(R"cpp(// error-ok TEST() local
1458 Annotations Test(R"cpp(// error-ok TEST() local
1475 Annotations Test(R"cpp(// error-ok TEST() local
1513 Annotations Test(R"cpp(// error-ok TEST() local
1536 Annotations Test(R"cpp(// error-ok TEST() local
1583 Annotations Test(R"cpp(// error-ok TEST() local
1604 Annotations Test(R"cpp( TEST() local
1626 Annotations Test(R"cpp( TEST() local
1658 Annotations Test("void x() { [[foo]](); }"); TEST() local
1940 Annotations Test(R"cpp( TEST() local
2003 Annotations Test(R"cpp( TEST() local
[all...]
H A DXRefsTests.cpp60 highlightsFrom(const Annotations &Test) { in highlightsFrom() argument
67 for (const auto &Range : Test.ranges()) in highlightsFrom()
69 for (const auto &Range : Test.ranges("read")) in highlightsFrom()
71 for (const auto &Range : Test.ranges("write")) in highlightsFrom()
136 for (const char *Test : Tests) { in TEST() local
137 Annotations T(Test); in TEST()
142 << Test; in TEST()
273 for (const char *Test : Tests) { in TEST() local
274 Annotations T(Test); in TEST()
279 << Test; in TEST()
343 Annotations Test(R"cpp(// only declaration in AST. TEST() local
424 Annotations Test(R"cpp(// only declaration in AST. TEST() local
1023 for (const char *Test : Tests) { TEST() local
1123 for (const char *Test : Tests) { TEST() local
1179 for (const char *Test : Tests) { TEST() local
1253 for (const char *Test : Tests) { TEST() local
1749 for (const char *Test : Tests) { TEST() local
1772 llvm::StringRef Test = R"cpp( TEST() local
1828 llvm::StringRef Test = R"cpp( TEST() local
1952 checkFindRefs(llvm::StringRef Test,bool UseIndex=false) checkFindRefs() argument
2182 for (const char *Test : Tests) TEST() local
2232 llvm::StringRef Test = TEST() local
2254 llvm::StringRef Test = TEST() local
2278 llvm::StringRef Test = TEST() local
2349 for (const char *Test : Tests) TEST() local
2373 for (const char *Test : Tests) { TEST() local
2500 struct Test { TEST() struct
2501 AnnotatedCodeclang::clangd::__anonb6e2db6b0111::TEST::Test TEST() argument
2502 WantQueryclang::clangd::__anonb6e2db6b0111::TEST::Test TEST() argument
[all...]
/llvm-project/clang/test/SemaCXX/
H A Dwarn-new-overaligned.cpp5 struct Test { struct
15 Test t; in helper()
16 …new Test; // precxx17-warning {{type 'Test' requires 256 bytes of alignment and the default alloc… in helper()
17 …new Test[10]; // precxx17-warning {{type 'Test' requires 256 bytes of alignment and the default a… in helper()
26 class Test { class
32 Test t; in helper()
33 …new Test; // precxx17-warning {{type 'Test' requires 256 bytes of alignment and the default alloc… in helper()
34 …new Test[10]; // precxx17-warning {{type 'Test' requires 256 bytes of alignment and the default a… in helper()
39 struct Test { struct
54 Test t; in helper()
[all …]
/llvm-project/clang-tools-extra/clangd/unittests/tweaks/
H A DDefineInlineTests.cpp194 auto *Test = R"cpp( in TEST_F() local
250 EXPECT_EQ(apply(Test), Expected); in TEST_F()
254 auto *Test = R"cpp( in TEST_F() local
276 EXPECT_EQ(apply(Test), Expected); in TEST_F()
280 auto *Test = R"cpp( in TEST_F() local
310 EXPECT_EQ(apply(Test), Expected); in TEST_F()
314 auto *Test = R"cpp( in TEST_F() local
348 EXPECT_EQ(apply(Test), Expected); in TEST_F()
352 auto *Test = R"cpp( in TEST_F() local
368 EXPECT_EQ(apply(Test), Expected); in TEST_F()
[all …]
H A DDefineOutlineTests.cpp21 FileName = "Test.cpp"; in TEST_F()
63 FileName = "Test.hpp"; in TEST_F()
149 FileName = "Test.hpp"; in TEST_F()
150 llvm::StringRef Test = "void fo^o() { return; }"; in TEST_F() local
153 EXPECT_EQ(apply(Test), Expected); in TEST_F()
157 ExtraFiles["Test.cpp"] = ""; in TEST_F()
158 FileName = "Test.hpp"; in TEST_F()
161 llvm::StringRef Test; in TEST_F()
435 SCOPED_TRACE(Case.Test); in TEST_F()
437 EXPECT_EQ(apply(Case.Test, in TEST_F()
162 llvm::StringRef Test; TEST_F() member
391 llvm::StringRef Test; TEST_F() member
429 llvm::StringRef Test; TEST_F() member
538 llvm::StringRef Test; TEST_F() member
[all...]
/llvm-project/mlir/test/IR/
H A Delements-attr-interface.mlir11 // expected-error@below {{Test iterating `int64_t`: unable to iterate type}}
12 // expected-error@below {{Test iterating `uint64_t`: 10, 11, 12, 13, 14}}
13 // expected-error@below {{Test iterating `APInt`: 10, 11, 12, 13, 14}}
14 // expected-error@below {{Test iterating `IntegerAttr`: 10 : i64, 11 : i64, 12 : i64, 13 : i64, 14 : i64}}
17 // expected-error@below {{Test iterating `int64_t`: 10, 11, 12, 13, 14}}
18 // expected-error@below {{Test iterating `uint64_t`: 10, 11, 12, 13, 14}}
19 // expected-error@below {{Test iterating `APInt`: 10, 11, 12, 13, 14}}
20 // expected-error@below {{Test iterating `IntegerAttr`: 10 : i64, 11 : i64, 12 : i64, 13 : i64, 14 : i64}}
24 // expected-error@below {{Test iterating `int64_t`: expected element type to be an integer type}}
25 // expected-error@below {{Test iteratin
[all...]
/llvm-project/libc/test/src/string/
H A DStrchrTest.h9 #include "test/UnitTest/Test.h"
11 template <auto Func> struct StrchrTest : public LIBC_NAMESPACE::testing::Test {
89 template <auto Func> struct StrrchrTest : public LIBC_NAMESPACE::testing::Test { in findsFirstCharacter()
166 using LlvmLibc##name##Test = StrchrTest<func>; \
167 TEST_F(LlvmLibc##name##Test, FindsFirstCharacter) { findsFirstCharacter(); } \
168 TEST_F(LlvmLibc##name##Test, FindsMiddleCharacter) { \
171 TEST_F(LlvmLibc##name##Test, FindsLastCharacterThatIsNotNullTerminator) { \
174 TEST_F(LlvmLibc##name##Test, FindsNullTerminator) { findsNullTerminator(); } \
175 TEST_F(LlvmLibc##name##Test, CharacterNotWithinStringShouldReturnNullptr) { \
178 TEST_F(LlvmLibc##name##Test, TheSourceShouldNotChang
[all...]
/llvm-project/clang-tools-extra/include-cleaner/unittests/
H A DLocateSymbolTest.cpp115 LocateExample Test(Case); in TEST()
116 EXPECT_THAT(locateSymbol(Test.findDecl("foo"), Test.langOpts()), in TEST()
117 ElementsAreArray(Test.points()));
123 LocateExample Test("namespace std { struct vector; }"); in TEST()
125 locateSymbol(Test.findDecl("vector"), Test.langOpts()), in TEST()
129 LocateExample Test("#define assert(x)\nvoid foo() { assert(true); }"); in TEST()
130 EXPECT_THAT(locateSymbol(Test.findMacro("assert"), Test in TEST()
112 LocateExample Test(Case); TEST() local
120 LocateExample Test("namespace std { struct vector; }"); TEST() local
126 LocateExample Test("#define assert(x)\nvoid foo() { assert(true); }"); TEST() local
134 LocateExample Test("#define FOO\n#undef FOO\n#define ^FOO"); TEST() local
145 LocateExample Test("namespace std { struct vector; }"); TEST() local
153 LocateExample Test("#define ^FOO"); TEST() local
167 LocateExample Test(Case); TEST() local
183 LocateExample Test(Case); TEST() local
[all...]
/llvm-project/llvm/unittests/Support/
H A Draw_pwrite_stream_test.cpp35 StringRef Test = "test"; in TEST() local
36 OS.pwrite(Test.data(), Test.size(), 0); in TEST()
37 EXPECT_EQ(Test, OS.str()); in TEST()
71 StringRef Test = "test"; in TEST() local
72 OS.pwrite(Test.data(), Test.size(), 0); in TEST()
73 OS.pwrite(Test.data(), Test.size(), 0); in TEST()
89 StringRef Test = "test"; in TEST() local
90 OS.pwrite(Test.data(), Test.size(), 0); in TEST()
91 OS.pwrite(Test.data(), Test.size(), 0); in TEST()
/llvm-project/compiler-rt/lib/gwp_asan/tests/
H A Dcompression.cpp137 void runPackUnpack(uintptr_t *Test, size_t NumEntries) { in runPackUnpack() argument
147 pack(Test, NumEntries, Compressed, CompressedBufferSize); in runPackUnpack()
157 EXPECT_EQ(Uncompressed[i], Test[i]); in runPackUnpack()
180 uintptr_t Test[] = {1, 2, 3}; in TEST() local
181 runPackUnpack(Test, sizeof(Test) / sizeof(uintptr_t)); in TEST()
185 uintptr_t Test[] = {3, 2, 1}; in TEST() local
186 runPackUnpack(Test, sizeof(Test) / sizeof(uintptr_t)); in TEST()
190 uintptr_t Test[] = {3, 3, 3}; in TEST() local
191 runPackUnpack(Test, sizeof(Test) / sizeof(uintptr_t)); in TEST()
195 uintptr_t Test[] = {1, 3, 2, 4, 1, 2}; in TEST() local
[all …]
/llvm-project/lldb/test/API/
H A Dlldbtest.py6 import lit.Test
23 # Ignore files that don't start with 'Test'.
24 if not filename.startswith("Test"):
31 yield lit.Test.Test(
37 return lit.Test.PASS, ""
40 return (lit.Test.UNSUPPORTED, "Python module disabled")
43 return (lit.Test.UNSUPPORTED, "Test is unsupported")
88 return lit.Test
[all...]
/llvm-project/clang/test/Frontend/
H A Dplugin-call-super.cpp7 [[clang::call_super]] virtual void Test() {} in Test() function
10 [[clang::call_super]] virtual void Test() {} in Test() function
14 void Test() override;
16 [[clang::call_super]] virtual void Test() override final;
20 void Derive::Test() { in Test() function in Derive
21 Base1::Test(); in Test()
23 Base2::Test(); in Test()
30 void Test() override { in Test() function
31 Base1::Test(); in Test()
32 Base2::Test(); in Test()
/llvm-project/llvm/tools/llvm-reduce/deltas/
H A DDelta.cpp94 std::unique_ptr<ReducerWorkItem> Clone, const TestRunner &Test, in CheckChunk()
137 if (!Clone->isReduced(Test)) { in CheckChunk()
147 const Chunk ChunkToCheckForUninterestingness, const TestRunner &Test, in ProcessChunkFromSerializedBitcode()
155 CloneMMM->readBitcode(Data, Ctx, Test.getToolName()); in ProcessChunkFromSerializedBitcode()
160 Test, ExtractChunksFromModule, UninterestingChunks, in ProcessChunkFromSerializedBitcode()
176 void llvm::runDeltaPass(TestRunner &Test, ReductionFunc ExtractChunksFromModule, in runDeltaPass()
178 assert(!Test.getProgram().verify(&errs()) && in runDeltaPass()
189 ExtractChunksFromModule(Counter, Test.getProgram()); in runDeltaPass()
192 assert(!Test.getProgram().verify(&errs()) && in runDeltaPass()
194 assert(Test in runDeltaPass()
93 CheckChunk(const Chunk ChunkToCheckForUninterestingness,std::unique_ptr<ReducerWorkItem> Clone,const TestRunner & Test,ReductionFunc ExtractChunksFromModule,const DenseSet<Chunk> & UninterestingChunks,const std::vector<Chunk> & ChunksStillConsideredInteresting) CheckChunk() argument
146 ProcessChunkFromSerializedBitcode(const Chunk ChunkToCheckForUninterestingness,const TestRunner & Test,ReductionFunc ExtractChunksFromModule,const DenseSet<Chunk> & UninterestingChunks,ArrayRef<Chunk> ChunksStillConsideredInteresting,StringRef OriginalBC,std::atomic<bool> & AnyReduced) ProcessChunkFromSerializedBitcode() argument
175 runDeltaPass(TestRunner & Test,ReductionFunc ExtractChunksFromModule,StringRef Message) runDeltaPass() argument
[all...]
/llvm-project/clang/test/SemaObjC/
H A Darc-repeated-weak.mm4 @interface Test { interface
6 Test *ivar;
9 @property(weak) Test *weakProp;
10 @property(strong) Test *strongProp;
22 void basicCorrectnessTest(Test *a) {
32 void singleUse(Test *a) {
37 void assignsOnly(Test *a) {
56 void assignThenRead(Test *a) {
61 void twoVariables(Test *a, Test *b) {
66 void doubleLevelAccess(Test *a) {
[all …]
H A Dproperty-13.m9 @protocol Test protocol
25 @interface Test : NSObject <Test> { interface
36 @implementation Test implementation
51 Test *x = [[Test alloc] init];
52 /* 1. Test of a required property */
57 /* 2. Test of a synthesize optional property */
62 /* 3. Test of optional property with pre-sxisting defined setter/getter */
67 /* 4. Test of optional property with setter/getter attribute */
72 /* 5. Test of optional property with getter attribute and default setter method. */
/llvm-project/llvm/utils/lit/lit/
H A Dreports.py11 import lit.Test
48 unexecuted_codes = {lit.Test.EXCLUDED, lit.Test.SKIPPED}
117 skipped_codes = {lit.Test.EXCLUDED, lit.Test.SKIPPED, lit.Test.UNSUPPORTED}
183 if code == lit.Test.EXCLUDED:
184 return "Test not selected (--filter, --max-tests)"
185 if code == lit.Test.SKIPPED:
188 assert code == lit.Test
[all...]
/llvm-project/utils/bazel/llvm-project-overlay/mlir/test/
H A DBUILD.bazel90 includes = ["lib/Dialect/Test"],
111 srcs = glob(["lib/Dialect/Test/*.td"]),
133 strip_include_prefix = "lib/Dialect/Test",
137 "lib/Dialect/Test/TestOpsSyntax.h.inc",
141 "lib/Dialect/Test/TestOpsSyntax.cpp.inc",
145 td_file = "lib/Dialect/Test/TestOpsSyntax.td",
154 strip_include_prefix = "lib/Dialect/Test",
161 "lib/Dialect/Test/TestOpsDialect.h.inc",
168 "lib/Dialect/Test/TestOpsDialect.cpp.inc",
172 "lib/Dialect/Test/TestPattern
[all...]
/llvm-project/clang/test/SemaTemplate/
H A Dconcepts-inherited-ctor.cpp75 template <typename T> struct Test { struct
76 Test()
79 struct Bar : public Test<int> {
80 using Test<int>::Test;
83 struct Test<void> : public Test<int> { struct
84 using Test<int>::Test;
89 Test<void>(); in foo()
/llvm-project/llvm/test/CodeGen/SystemZ/
H A Dvec-move-09.ll1 ; Test vector insertion of constants.
5 ; Test v16i8 insertion into the first element.
14 ; Test v16i8 insertion into the last element.
23 ; Test v16i8 insertion with the maximum signed value.
32 ; Test v16i8 insertion with the minimum signed value.
41 ; Test v16i8 insertion with the maximum unsigned value.
50 ; Test v16i8 insertion into a variable element.
59 ; Test v8i16 insertion into the first element.
68 ; Test v8i16 insertion into the last element.
77 ; Test v8i16 insertion with the maximum signed value.
[all …]
H A Dvec-move-05.ll1 ; Test vector extraction.
5 ; Test v16i8 extraction of the first element.
14 ; Test v16i8 extraction of the last element.
23 ; Test v16i8 extractions of an absurd element number. This must compile
33 ; Test v16i8 extraction of a variable element.
42 ; Test v8i16 extraction of the first element.
51 ; Test v8i16 extraction of the last element.
60 ; Test v8i16 extractions of an absurd element number. This must compile
70 ; Test v8i16 extraction of a variable element.
79 ; Test v4i32 extraction of the first element.
[all …]
H A Dvec-const-10.ll1 ; Test vector replicates, v2i64 version.
5 ; Test a byte-granularity replicate with the lowest useful value.
13 ; Test a byte-granularity replicate with an arbitrary value.
21 ; Test a byte-granularity replicate with the highest useful value.
29 ; Test a halfword-granularity replicate with the lowest useful value.
37 ; Test a halfword-granularity replicate with an arbitrary value.
45 ; Test a halfword-granularity replicate with the highest useful value.
53 ; Test a word-granularity replicate with the lowest useful positive value.
61 ; Test a word-granularity replicate with the highest in-range value.
69 ; Test a word-granularity replicate with the next highest value.
[all …]
/llvm-project/clang/test/AST/
H A Dast-dump-lookups.cpp6 namespace Test { namespace
13 #pragma clang __debug dump Test
23 namespace Test { } namespace
56 namespace Test { namespace
63 #pragma clang __debug dump foo(Test::S{})
68 #pragma clang __debug dump Test::S{} + Test::S{}
73 #pragma clang __debug dump &Test::S::operator+

12345678910>>...229