/llvm-project/clang/test/SemaCXX/ |
H A D | warn-enum-compare.cpp | 79 …while (B1 == B2); // expected-warning {{comparison of different enumeration types ('name1::Baz' a… in test() 80 …while (name1::B2 == name2::B3); // expected-warning {{comparison of different enumeration types (… in test() 81 …while (z == name2::B2); // expected-warning {{comparison of different enumeration types ('Baz' an… in test() 83 …while (((((B1)))) == B2); // expected-warning {{comparison of different enumeration types ('name1… in test() 84 …while (name1::B2 == (name2::B3)); // expected-warning {{comparison of different enumeration types… in test() 85 …while (z == ((((name2::B2))))); // expected-warning {{comparison of different enumeration types (… in test() 87 …while ((((B1))) == (((B2)))); // expected-warning {{comparison of different enumeration types ('n… in test() 88 …while ((name1::B2) == (((name2::B3)))); // expected-warning {{comparison of different enumeration… in test() 89 …while ((((z))) == (name2::B2)); // expected-warning {{comparison of different enumeration types (… in test() 91 …while (x == a); // expected-warning {{comparison of different enumeration types ('Foo' and 'name1… in test() [all …]
|
H A D | vector-casts.cpp | 40 …_cast from vector '__v2si' (vector of 2 'int' values) to scalar 'unsigned char' of different size}} in f() 41 … cast from vector '__v2si' (vector of 2 'int' values) to scalar 'unsigned char' of different size}} in f() 42 …_cast from scalar 'unsigned char' to vector '__v2si' (vector of 2 'int' values) of different size}} in f() 44 …i' (vector of 4 'short' values) to vector '__v8hi' (vector of 8 'short' values) of different size}} in f() 45 …i' (vector of 4 'short' values) to vector '__v8hi' (vector of 8 'short' values) of different size}} in f() 46 …i' (vector of 8 'short' values) to vector '__v4hi' (vector of 4 'short' values) of different size}} in f() 47 …i' (vector of 8 'short' values) to vector '__v4hi' (vector of 4 'short' values) of different size}} in f() 49 …i' (vector of 4 'short' values) to vector '__v3hi' (vector of 3 'short' values) of different size}} in f() 50 …2si' (vector of 2 'int' values) to vector '__v3hi' (vector of 3 'short' values) of different size}} in f() 51 …i' (vector of 3 'short' values) to vector '__v4hi' (vector of 4 'short' values) of different size}} in f() [all …]
|
H A D | vector.cpp | 386 inte4 b = (inte4)(a, a); //expected-error{{C-style cast from vector 'inte2' (vector of 2 'int' values) to vector 'inte4' (vector of 4 'int' values) of different size}} //expected-warning{{left operand of comma operator has no effect}} in test_vector_literal() 693 (void)(v2ua + ea); // expected-error{{cannot convert between vector values of different size}} in test_enum_vector_scalar() 694 (void)(ea + v2ua); // expected-error{{cannot convert between vector values of different size}} in test_enum_vector_scalar() 695 (void)(v2ua - ea); // expected-error{{cannot convert between vector values of different size}} in test_enum_vector_scalar() 696 (void)(ea - v2ua); // expected-error{{cannot convert between vector values of different size}} in test_enum_vector_scalar() 697 (void)(v2ua * ea); // expected-error{{cannot convert between vector values of different size}} in test_enum_vector_scalar() 698 (void)(ea * v2ua); // expected-error{{cannot convert between vector values of different size}} in test_enum_vector_scalar() 699 (void)(v2ua / ea); // expected-error{{cannot convert between vector values of different size}} in test_enum_vector_scalar() 700 (void)(ea / v2ua); // expected-error{{cannot convert between vector values of different size}} in test_enum_vector_scalar() 701 (void)(v2ua % ea); // expected-error{{cannot convert between vector values of different siz in test_enum_vector_scalar() [all...] |
H A D | compare.cpp | 13 … (a == (unsigned long) b) + // expected-warning {{comparison of integers of different signs}} in test0() 17 ((long) a == b) + // expected-warning {{comparison of integers of different signs}} in test0() 18 ((int) a == b) + // expected-warning {{comparison of integers of different signs}} in test0() 19 ((short) a == b) + // expected-warning {{comparison of integers of different signs}} in test0() 20 ((signed char) a == b) + // expected-warning {{comparison of integers of different signs}} in test0() 21 …(long) a == (unsigned long) b) + // expected-warning {{comparison of integers of different signs}} in test0() 22 … ((int) a == (unsigned int) b) + // expected-warning {{comparison of integers of different signs}} in test0() 25 … (a < (unsigned long) b) + // expected-warning {{comparison of integers of different signs}} in test0() 29 ((long) a < b) + // expected-warning {{comparison of integers of different signs}} in test0() 30 ((int) a < b) + // expected-warning {{comparison of integers of different signs}} in test0() [all …]
|
H A D | warn-memset-bad-sizeof.cpp | 39 …mset' call operates on objects of type 'S' while the size is based on a different type 'S *'}} exp… in f() 41 …mset' call operates on objects of type 'S' while the size is based on a different type 'S *'}} exp… in f() 43 …mset' call operates on objects of type 'S' while the size is based on a different type 'PS' (aka '… in f() 49 …t' call operates on objects of type 'char' while the size is based on a different type 'char *'}} … in f() 52 …zero' call operates on objects of type 'S' while the size is based on a different type 'S *'}} exp… in f() 54 …zero' call operates on objects of type 'S' while the size is based on a different type 'S *'}} exp… in f() 56 …zero' call operates on objects of type 'S' while the size is based on a different type 'PS' (aka '… in f() 62 …o' call operates on objects of type 'char' while the size is based on a different type 'char *'}} … in f() 65 …mcpy' call operates on objects of type 'S' while the size is based on a different type 'S *'}} exp… in f() 67 …mcpy' call operates on objects of type 'S' while the size is based on a different type 'S *'}} exp… in f() [all …]
|
/llvm-project/clang/test/Modules/ |
H A D | compare-objc-interface.m | 27 // Test that we don't accept different class definitions with the same name 96 // expected-error@first.h:* {{'CompareSuperclassPresence1' has different definitions in different m… 99 // expected-error@first.h:* {{'CompareSuperclassPresence2' has different definitions in different m… 102 // expected-error@first.h:* {{'CompareDifferentSuperclass' has different definitions in different m… 131 // expected-error@first.h:* {{'CompareProtocolPresence1' has different definitions in different mod… 134 // expected-error@first.h:* {{'CompareProtocolPresence2' has different definitions in different mod… 138 // expected-error@first.h:* {{'CompareDifferentProtocols' has different definitions in different mo… 139 …{but in {{'Second'|definition here}} found 1st referenced protocol with different name 'ExtraProto… 141 // expected-error@first.h:* {{'CompareProtocolOrder' has different definitions in different modules… 142 …{but in {{'Second'|definition here}} found 1st referenced protocol with different name 'ExtraProto… [all …]
|
H A D | odr_hash.cpp | 54 // expected-error@second.h:* {{'AccessSpecifiers::S1' has different definitions in different modules; first difference is definition in module 'SecondModule' found private access specifier}} 68 // expected-error@second.h:* {{'AccessSpecifiers::S2' has different definitions in different modules; first difference is definition in module 'SecondModule' found protected access specifier}} 92 // expected-error@second.h:* {{'AccessSpecifiers::Invalid1' has different definitions in different modules; first difference is definition in module 'SecondModule' found private access specifier}} 110 // expected-error@second.h:* {{'StaticAssert::S1' has different definitions in different modules; first difference is definition in module 'SecondModule' found static assert with message}} 111 // expected-note@first.h:* {{but in 'FirstModule' found static assert with different message}} 124 // expected-error@second.h:* {{'StaticAssert::S2' has different definition [all...] |
H A D | compare-objc-protocol.m | 107 // expected-error@first.h:* {{'CompareProtocolPresence1' has different definitions in different mod… 114 // expected-error@first.h:* {{'CompareProtocolPresence2' has different definitions in different mod… 118 // expected-error@first.h:* {{'CompareDifferentProtocols' has different definitions in different mo… 119 …{but in {{'Second'|definition here}} found 1st referenced protocol with different name 'ExtraProto… 121 // expected-error@first.h:* {{'CompareProtocolOrder' has different definitions in different modules… 122 …{but in {{'Second'|definition here}} found 1st referenced protocol with different name 'ExtraProto… 220 // expected-error@first.h:* {{'CompareMethodPresence1' has different definitions in different modul… 223 // expected-error@first.h:* {{'CompareMethodPresence2' has different definitions in different modul… 226 // expected-error@first.h:* {{'CompareMethodName' has different definitions in different modules; f… 227 // expected-note-re@second.h:* {{but in {{'Second'|definition here}} found different method 'method… [all …]
|
H A D | odr_hash.mm | 112 // expected-error@second.h:* {{Types::Attributed::invalid1' has different definitions in different … 113 // expected-note@first.h:* {{but in 'FirstModule' found a different body}} 161 …ted-error@second.h:* {{'Types::BlockPointer::invalid1' has different definitions in different modu… 162 // expected-note@first.h:* {{but in 'FirstModule' found a different body}} 164 …ted-error@second.h:* {{'Types::BlockPointer::invalid2' has different definitions in different modu… 165 // expected-note@first.h:* {{but in 'FirstModule' found a different body}} 167 …ted-error@second.h:* {{'Types::BlockPointer::invalid3' has different definitions in different modu… 168 // expected-note@first.h:* {{but in 'FirstModule' found a different body}} 170 …ted-error@second.h:* {{'Types::BlockPointer::invalid4' has different definitions in different modu… 171 // expected-note@first.h:* {{but in 'FirstModule' found a different body}} [all …]
|
H A D | compare-record.c | 43 // Test that we don't accept different structs and unions with the same name 124 // expected-error@first.h:* {{'CompareFieldPresence1' has different definitions in different modules; first difference is definition in module 'First.Hidden' found field}} 133 // expected-error@first.h:* {{'CompareFieldOrder' has different definitions in different modules; first difference is definition in module 'First.Hidden' found field 'fieldOrderX'}} 180 // expected-error@first.h:* {{'CompareFieldTypedefName' has different definitions in different modules; first difference is definition in module 'First.Hidden' found field 'fieldTypedefName' with type 'FieldTypedefNameA' (aka 'int')}} 183 // expected-error@first.h:* {{'CompareFieldTypeUnderlyingTypedef' has different definitions in different modules; first difference is definition in module 'First.Hidden' found field 'fieldTypeUnderlyingTypedef' with type 'TypedefUnderlyingType' (aka 'int')}} 229 // expected-error@first.h:* {{'CompareBitfieldPresence1' has different definition [all...] |
/llvm-project/clang/include/clang/Basic/ |
H A D | DiagnosticASTKinds.td | 104 "repeated evaluation of the same literal expression can produce different objects">; 120 "comparison of addresses of subobjects of different base classes " 156 "it may be different at runtime">; 236 "a different member of the same union">; 461 "external variable %0 declared with incompatible types in different " 464 "external variable %0 declared with incompatible types in different " 474 "external function %0 declared with incompatible types in different " 477 "external function %0 declared with incompatible types in different " 481 : Error<"type %0 has incompatible definitions in different translation " 484 : Warning<"type %0 has incompatible definitions in different translatio [all...] |
/llvm-project/llvm/test/MC/ARM/ |
H A D | equal-rdhi-rdlo-diagnostics.s | 5 @ CHECK: [[@LINE-1]]:{{[0-9]+}}: error: unpredictable instruction, RdHi and RdLo must be different 7 @ CHECK: [[@LINE-1]]:{{[0-9]+}}: error: unpredictable instruction, RdHi and RdLo must be different 9 @ CHECK: [[@LINE-1]]:{{[0-9]+}}: error: unpredictable instruction, RdHi and RdLo must be different 11 @ CHECK: [[@LINE-1]]:{{[0-9]+}}: error: unpredictable instruction, RdHi and RdLo must be different 13 @ CHECK: [[@LINE-1]]:{{[0-9]+}}: error: unpredictable instruction, RdHi and RdLo must be different 15 @ CHECK: [[@LINE-1]]:{{[0-9]+}}: error: unpredictable instruction, RdHi and RdLo must be different 17 @ CHECK: [[@LINE-1]]:{{[0-9]+}}: error: unpredictable instruction, RdHi and RdLo must be different 19 @ CHECK: [[@LINE-1]]:{{[0-9]+}}: error: unpredictable instruction, RdHi and RdLo must be different 21 @ CHECK: [[@LINE-1]]:{{[0-9]+}}: error: unpredictable instruction, RdHi and RdLo must be different 23 @ CHECK: [[@LINE-1]]:{{[0-9]+}}: error: unpredictable instruction, RdHi and RdLo must be different [all …]
|
/llvm-project/clang/test/ASTMerge/struct/ |
H A D | test.c | 5 // CHECK: struct1.c:13:8: warning: type 'struct S1' has incompatible definitions in different trans… 8 …11: warning: external variable 'x1' declared with incompatible types in different translation unit… 10 // CHECK: struct1.c:21:8: warning: type 'struct S2' has incompatible definitions in different trans… 12 …30: warning: external variable 'x2' declared with incompatible types in different translation unit… 14 // CHECK: struct1.c:24:8: warning: type 'struct S3' has incompatible definitions in different trans… 17 …31: warning: external variable 'x3' declared with incompatible types in different translation unit… 19 // CHECK: struct1.c:27:8: warning: type 'struct S4' has incompatible definitions in different trans… 22 …31: warning: external variable 'x4' declared with incompatible types in different translation unit… 24 …:10: warning: type 'struct DeeperError' has incompatible definitions in different translation units 27 …:54:8: warning: type 'struct DeepError' has incompatible definitions in different translation units [all …]
|
/llvm-project/clang/test/Sema/ |
H A D | var-redecl.c | 12 extern float outer1; // expected-error{{redeclaration of 'outer1' with a different type}} in outer_test() 13 extern float outer2; // expected-error{{redeclaration of 'outer2' with a different type}} in outer_test() 17 extern int outer6; // expected-error{{redefinition of 'outer6' as different kind of symbol}} in outer_test() 26 int outer3; // expected-error{{redefinition of 'outer3' with a different type}} 27 float outer4; // expected-error{{redefinition of 'outer4' with a different type}} 28 float outer5; // expected-error{{redefinition of 'outer5' with a different type}} 29 int outer8(int); // expected-error{{redefinition of 'outer8' as different kind of symbol}} 30 float outer9; // expected-error{{redefinition of 'outer9' with a different type}} 43 extern float outer11; // expected-error{{redeclaration of 'outer11' with a different type}} in outer_shadowing_test() 46 extern float outer12; // expected-error{{redeclaration of 'outer12' with a different type}} in outer_shadowing_test() [all …]
|
H A D | aarch64-sme-func-attrs.c | 176 // expected-error@+5 {{function declared 'void (void) __arm_streaming_compatible' was previously declared 'void (void) __arm_streaming', which has different SME function attributes}} 178 // expected-cpp-error@+3 {{function declared 'void () __arm_streaming_compatible' was previously declared 'void () __arm_streaming', which has different SME function attributes}} 183 // expected-error@+5 {{function declared 'void (void)' was previously declared 'void (void) __arm_preserves("za")', which has different SME function attributes}} 185 // expected-cpp-error@+3 {{function declared 'void ()' was previously declared 'void () __arm_preserves("za")', which has different SME function attributes}} 190 // expected-error@+5 {{function declared 'void (void) __arm_preserves("za")' was previously declared 'void (void)', which has different SME function attributes}} 192 // expected-cpp-error@+3 {{function declared 'void () __arm_preserves("za")' was previously declared 'void ()', which has different SME function attributes}} 230 // expected-cpp-error@+2 {{virtual function 'shared_za_memberfn' has different attributes ('void ()') than the function it overrides (which has 'void () __arm_inout("za")')}} 244 // expected-cpp-error@+2 {{virtual function 'memberfn' has different attributes ('void ()') than the function it overrides (which has 'void () __arm_preserves("za")')}} 254 // expected-cpp-error@+2 {{virtual function 'memberfn' has different attributes ('void () __arm_preserves("za")') than the function it overrides (which has 'void ()')}} 491 // expected-warning@+2 {{passing a VL-dependent argument to a locally streaming function is undefined behaviour when the streaming and non-streaming vector lengths are different a [all...] |
H A D | warn-compare-enum-types-mismatch.c | 29 // expected-warning@-1 {{comparison of different enumeration types}} in foo() 31 // expected-warning@-1 {{comparison of different enumeration types}} in foo() 33 // expected-warning@-1 {{comparison of different enumeration types}} in foo() 35 // expected-warning@-1 {{comparison of different enumeration types}} in foo() 37 // expected-warning@-1 {{comparison of different enumeration types}} in foo() 39 // expected-warning@-1 {{comparison of different enumeration types}} in foo() 41 // expected-warning@-1 {{comparison of different enumeration types}} in foo() 43 // expected-warning@-1 {{comparison of different enumeration types}} in foo() 45 // expected-warning@-1 {{comparison of different enumeration types}} in foo()
|
/llvm-project/clang/test/Analysis/copypaste/ |
H A D | clone-begin-end-different-file.cpp | 4 // starts in a file and ends in a different file. 8 #include "Inputs/clone-begin-end-different-file-end.inc" in f_end() 10 #include "Inputs/clone-begin-end-different-file-end.inc" in f_end() 14 #include "Inputs/clone-begin-end-different-file-begin-1.inc" in f_begin() 16 #include "Inputs/clone-begin-end-different-file-begin-2.inc" in f_begin() 24 #include "Inputs/clone-begin-end-different-file-end-macro.inc" in f1m() 26 #include "Inputs/clone-begin-end-different-file-end-macro.inc" in f1m() 33 #include "Inputs/clone-begin-end-different-file-begin-macro-1.inc" in f2m() 35 #include "Inputs/clone-begin-end-different-file-begin-macro-2.inc" in f2m()
|
/llvm-project/clang/test/SemaTemplate/ |
H A D | temp_arg_template_p0522.cpp | 37 // expected-note@-1 {{different template parameters}} 39 // expected-note@-1 {{different template parameters}} 41 // expected-note@-1 {{different template parameters}} 43 // expected-note@-1 {{different template parameters}} 52 // expected-note@-1 {{different template parameters}} 54 // expected-note@-1 {{different template parameters}} 56 // expected-note@-1 {{different template parameters}} 68 // expected-note@-1 {{different template parameters}} 71 // expected-note@-1 {{different template parameters}} 73 // expected-note@-1 {{different templat [all...] |
/llvm-project/clang/test/ASTMerge/class-template/ |
H A D | test.cpp | 8 …arning: non-type template parameter declared with incompatible types in different translation unit… 11 // CHECK: class-template1.cpp:12:14: warning: template parameter has different kinds in different t… 14 …arning: non-type template parameter declared with incompatible types in different translation unit… 17 // CHECK: class-template1.cpp:21:18: warning: template parameter has different kinds in different t… 20 …0: warning: external variable 'x0r' declared with incompatible types in different translation unit… 23 …1.cpp:35:8: warning: type 'X0<wchar_t>' has incompatible definitions in different translation units
|
/llvm-project/clang/test/ASTMerge/enum/ |
H A D | test.c | 5 // CHECK: enum1.c:9:6: warning: type 'enum E2' has incompatible definitions in different translatio… 8 …:3: warning: external variable 'x2' declared with incompatible types in different translation unit… 10 // CHECK: enum1.c:16:6: warning: type 'enum E3' has incompatible definitions in different translati… 13 …:3: warning: external variable 'x3' declared with incompatible types in different translation unit… 15 // CHECK: enum1.c:23:6: warning: type 'enum E4' has incompatible definitions in different translati… 18 …:3: warning: external variable 'x4' declared with incompatible types in different translation unit… 20 // CHECK: enum1.c:30:6: warning: type 'enum E5' has incompatible definitions in different translati… 23 …:3: warning: external variable 'x5' declared with incompatible types in different translation unit…
|
/llvm-project/libcxx/test/std/time/time.cal/time.cal.ymwd/time.cal.ymwd.nonmembers/ |
H A D | comparisons.pass.cpp | 45 // different day in main() 51 // different month in main() 57 // different year in main() 64 // different month and day in main() 70 // different year and month in main() 76 // different year and day in main() 82 // different year, month and day in main() 89 // same year, different days in main() 97 // same year, different months in main() 105 // same month, different years in main()
|
/llvm-project/libcxx/test/std/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.nonmembers/ |
H A D | comparisons.pass.cpp | 46 // different day in main() 52 // different month in main() 58 // different year in main() 65 // different month and day in main() 71 // different year and month in main() 77 // different year and day in main() 83 // different year, month and day in main() 90 // same year, different days in main() 98 // same year, different months in main() 106 // same month, different years in main()
|
/llvm-project/libcxx/test/std/time/time.cal/time.cal.ymd/time.cal.ymd.nonmembers/ |
H A D | comparisons.pass.cpp | 37 // different day in test() 43 // different month in test() 49 // different year in test() 55 // different month and day in test() 61 // different year and month in test() 67 // different year and day in test() 73 // different year, month and day in test() 79 // same year, different days in test() 89 // same year, different months in test() 99 // same month, different years in test()
|
/llvm-project/llvm/test/MC/AArch64/SVE/ |
H A D | movprfx-diagnostics.s | 23 // Different destination register (unary) 27 …}}: error: instruction is unpredictable when following a movprfx writing to a different destination 33 // Different destination register (binary) 37 …}}: error: instruction is unpredictable when following a movprfx writing to a different destination 43 // Different destination register (wide element) 47 …}}: error: instruction is unpredictable when following a movprfx writing to a different destination 53 // Different destination register (ternary) 57 …}}: error: instruction is unpredictable when following a movprfx writing to a different destination 124 // Different general predicate (unary) 128 …nstruction is unpredictable when following a predicated movprfx using a different general predicate [all …]
|
/llvm-project/clang/test/CodeGen/X86/ |
H A D | amx_errors.c | 14 _tile_dpbsud(1, 1, 3); // expected-error {{tile arguments must refer to different tiles}} in test_amx() 15 _tile_dpbsud(7, 1, 7); // expected-error {{tile arguments must refer to different tiles}} in test_amx() 16 _tile_dpbsud(4, 3, 3); // expected-error {{tile arguments must refer to different tiles}} in test_amx() 17 _tile_dpbf16ps(4, 3, 3); // expected-error {{tile arguments must refer to different tiles}} in test_amx() 18 _tile_dpfp16ps(1, 1, 3); // expected-error {{tile arguments must refer to different tiles}} in test_amx() 19 _tile_dpfp16ps(1, 2, 1); // expected-error {{tile arguments must refer to different tiles}} in test_amx() 20 _tile_dpfp16ps(1, 2, 2); // expected-error {{tile arguments must refer to different tiles}} in test_amx()
|