/llvm-project/clang/test/SemaCXX/ |
H A D | warn-unsafe-buffer-usage-in-container-span-construct.cpp | 45 std::span<int> S{p, 10}; // expected-warning{{the two-parameter std::span construction is unsafe as it can introduce mismatch between buffer size and the bound information}} in warnVarInit() 46 std::span<int> S1(p, 10); // expected-warning{{the two-parameter std::span construction is unsafe as it can introduce mismatch between buffer size and the bound information}} in warnVarInit() 47 std::span<int> S2 = std::span{p, 10}; // expected-warning{{the two-parameter std::span construction is unsafe as it can introduce mismatch between buffer size and the bound information}} in warnVarInit() 48 std::span<int> S3 = std::span(p, 10); // expected-warning{{the two-parameter std::span construction is unsafe as it can introduce mismatch between buffer size and the bound information}} in warnVarInit() 49 std::span<int> S4 = std::span<int>{p, 10}; // expected-warning{{the two-parameter std::span construction is unsafe as it can introduce mismatch between buffer size and the bound information}} in warnVarInit() 50 std::span<int> S5 = std::span<int>(p, 10); // expected-warning{{the two-parameter std::span construction is unsafe as it can introduce mismatch between buffer size and the bound information}} in warnVarInit() 51 std::span<int> S6 = {p, 10}; // expected-warning{{the two-parameter std::span construction is unsafe as it can introduce mismatch between buffer size and the bound information}} in warnVarInit() 52 auto S7 = std::span<int>{p, 10}; // expected-warning{{the two-parameter std::span construction is unsafe as it can introduce mismatch between buffer size and the bound information}} in warnVarInit() 53 auto S8 = std::span<int>(p, 10); // expected-warning{{the two-parameter std::span construction is unsafe as it can introduce mismatch between buffer size and the bound information}} in warnVarInit() 54 const auto &S9 = std::span<int>{p, 10}; // expected-warning{{the two-parameter std::span construction is unsafe as it can introduce mismatch between buffe in warnVarInit() [all...] |
H A D | switch-implicit-fallthrough-cxx98.cpp | 16 …case -1: // expected-warning{{unannotated fall-through between switch labels}} expected-note{{inse… in fallthrough() 18 …case 0: {// expected-warning{{unannotated fall-through between switch labels}} expected-note{{inse… in fallthrough() 20 …case 1: // expected-warning{{unannotated fall-through between switch labels}} expected-note{{inse… in fallthrough() 22 …case 3: // expected-warning{{unannotated fall-through between switch labels}} expected-note{{inse… in fallthrough() 25 …case 4: // expected-warning{{unannotated fall-through between switch labels}} expected-note{{inse… in fallthrough() 28 …case 5: // expected-warning{{unannotated fall-through between switch labels}} expected-note{{inse… in fallthrough() 37 …case 6: // expected-warning{{unannotated fall-through between switch labels}} expected-note{{inse… in fallthrough() 42 case 12: // no warning here, intended fall-through, no statement between labels in fallthrough() 103 …MY_SWITCH(n, 13, n *= 2, 14, break) // expected-warning{{unannotated fall-through between switch … in fallthrough_macro1() 107 MY_CASE(44, break); // expected-warning{{unannotated fall-through between switch labels}} in fallthrough_macro1() [all …]
|
H A D | vector.cpp | 510 c &Value; // expected-error{{cannot convert between scalar type 'PR45780::E' and vector type 'char16'}} in use() 511 c == Value; // expected-error{{cannot convert between scalar type 'PR45780::E' and vector type 'char16'}} in use() 512 e | c; // expected-error{{cannot convert between scalar type 'E' and vector type 'char16'}} in use() 513 e != c; // expected-error{{cannot convert between scalar type 'E' and vector type 'char16'}} in use() 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 vecto in test_enum_vector_scalar() [all...] |
H A D | switch-implicit-fallthrough.cpp | 15 …case 0: {// expected-warning{{unannotated fall-through between switch labels}} expected-note{{inse… in fallthrough() 17 …case 1: // expected-warning{{unannotated fall-through between switch labels}} expected-note{{inse… in fallthrough() 19 …case 3: // expected-warning{{unannotated fall-through between switch labels}} expected-note{{inse… in fallthrough() 22 …case 4: // expected-warning{{unannotated fall-through between switch labels}} expected-note{{inse… in fallthrough() 25 …case 5: // expected-warning{{unannotated fall-through between switch labels}} expected-note{{inse… in fallthrough() 34 …case 6: // expected-warning{{unannotated fall-through between switch labels}} expected-note{{inse… in fallthrough() 36 …case 66: // expected-warning{{unannotated fall-through between switch labels}} expected-note{{ins… in fallthrough() 74 …case 110: // expected-warning{{unannotated fall-through between switch labels}} but no fix-it hin… in fallthrough() 81 case 12: // no warning here, intended fall-through, no statement between labels in fallthrough() 158 …MY_SWITCH(n, 13, n *= 2, 14, break) // expected-warning{{unannotated fall-through between switch … in fallthrough_macro1() [all …]
|
H A D | warn-unsafe-buffer-usage-multi-decl-warnings.cpp | 9 …ve bounds information, and change 'q' to 'std::span' to propagate bounds information between them}} in local_assign_both_span() 12 …ve bounds information, and change 'p' to 'std::span' to propagate bounds information between them}} in local_assign_both_span() 35 …ve bounds information, and change 'q' to 'std::span' to propagate bounds information between them}} in local_assign_lhs_span() 46 …rmation, and change 'c', 'b', and 'a' to 'std::span' to propagate bounds information between them}} in lhs_span_multi_assign() 60 …s information, and change 'q' and 'r' to 'std::span' to propagate bounds information between them}} in rhs_span1() 62 …s information, and change 'p' and 'q' to 'std::span' to propagate bounds information between them}} in rhs_span1() 109 …s information, and change 'r' and 'q' to 'std::span' to propagate bounds information between them}} in foo1b() 112 …s information, and change 'p' and 'r' to 'std::span' to propagate bounds information between them}} in foo1b() 129 …s information, and change 'q' and 'r' to 'std::span' to propagate bounds information between them}} in foo2a() 147 …s information, and change 'q' and 'r' to 'std::span' to propagate bounds information between them}} in foo2c() [all …]
|
H A D | switch-implicit-fallthrough-macro.cpp | 11 …case 1: // expected-warning{{unannotated fall-through between switch labels}} expected-note{{inser… in fallthrough_compatibility_macro_from_command_line() 29 …case 1: // expected-warning{{unannotated fall-through between switch labels}} expected-note{{inser… in fallthrough_compatibility_macro_from_source() 56 …case 1: // expected-warning{{unannotated fall-through between switch labels}} expected-note{{inser… in fallthrough_compatibility_macro_in_macro() 74 …case 1: // expected-warning{{unannotated fall-through between switch labels}} expected-note{{inser… in fallthrough_compatibility_macro_undefined() 76 …case 1: // expected-warning{{unannotated fall-through between switch labels}} expected-note{{inser… in fallthrough_compatibility_macro_undefined() 97 …case 1: // expected-warning{{unannotated fall-through between switch labels}} expected-note{{inser… in fallthrough_compatibility_macro_history() 99 …case 1: // expected-warning{{unannotated fall-through between switch labels}} expected-note{{inser… in fallthrough_compatibility_macro_history() 120 …case 1: // expected-warning{{unannotated fall-through between switch labels}} expected-note{{inser… in fallthrough_compatibility_macro_history2() 138 …case 1: // expected-warning{{unannotated fall-through between switch labels}} expected-note{{inser… in fallthrough_compatibility_macro_history_template()
|
H A D | attr-arm-sve-vector-bits.cpp | 20 // Test implicit casts between VLA and VLS vectors 24 // Test implicit casts between GNU and VLA vectors 28 // Test implicit casts between GNU and VLS vectors 32 // Test implicit casts between VLA and VLS predicates 36 // Test implicit casts between GNU and VLA predicates
|
/llvm-project/clang/test/Parser/ |
H A D | lax-conv.cpp | 24 …return RetImplicitConv; // expected-warning {{implicit conversion between vector types (''__vector… in test1() 27 …return RetImplicitConvAddConst + 5; // expected-warning {{implicit conversion between vector types… in test2() 37 …me1 + RetImplicitConvAddSame2; // expected-warning {{implicit conversion between vector types (''_… in test5() 57 …return dummy(ArgImplicitConv); // expected-warning {{implicit conversion between vector types (''_… in test1a() 60 …return dummy(ArgImplicitConvAddConst + 5); // expected-warning {{implicit conversion between vecto… in test2a() 70 …e1 + ArgImplicitConvAddSame2); // expected-warning {{implicit conversion between vector types (''_… in test5a() 83 …vbs = vss; // expected-warning {{implicit conversion between vector types (''__vector short' (vect… in test_bool_compat() 84 …vbs = vus; // expected-warning {{implicit conversion between vector types (''__vector unsigned sho… in test_bool_compat() 86 …vbi = vsi; // expected-warning {{implicit conversion between vector types (''__vector int' (vector… in test_bool_compat() 87 …vbi = vui; // expected-warning {{implicit conversion between vector types (''__vector unsigned int… in test_bool_compat() [all …]
|
/llvm-project/clang/test/Sema/ |
H A D | incompatible-sign.c | 5 …warning {{passing 'unsigned int *' to parameter of type 'int *' converts between pointers to integ… in b() 9 …signed char *p = &c; // expected-warning {{converts between pointers to integer types where one is… in plainCharToSignedChar() 10 …struct { signed char *p; } s = { &c }; // expected-warning {{converts between pointers to integer … in plainCharToSignedChar() 11 …p = &c; // expected-warning {{converts between pointers to integer types where one is of the uniqu… in plainCharToSignedChar() 12 …plainCharToSignedChar(&c); // expected-warning {{converts between pointers to integer types where … in plainCharToSignedChar() 13 …return &c; // expected-warning {{converts between pointers to integer types where one is of the un… in plainCharToSignedChar() 18 …char *p = uc; // expected-warning {{converts between pointers to integer types where one is of the… in unsignedCharToPlainChar() 19 …(void) (char *[]){ [42] = uc }; // expected-warning {{converts between pointers to integer types w… in unsignedCharToPlainChar() 20 …p = uc; // expected-warning {{converts between pointers to integer types where one is of the uniqu… in unsignedCharToPlainChar() 21 …unsignedCharToPlainChar(uc); // expected-warning {{converts between pointers to integer types wher… in unsignedCharToPlainChar() [all …]
|
H A D | matrix-cast.c | 24 …m4 = (ix5x5)m3; // expected-error {{conversion between matrix types 'ix5x5' (aka 'int __att… 29 …i = (int)m4; // expected-error {{conversion between matrix type 'ix5x5' (aka 'int __attr… 31 …m4 = (ix5x5)i; // expected-error {{conversion between matrix type 'ix5x5' (aka 'int __attr… 33 …v = (vec)m4; // expected-error {{conversion between matrix type 'ix5x5' (aka 'int __attr… 35 …m4 = (ix5x5)v; // expected-error {{conversion between matrix type 'ix5x5' (aka 'int __attr… 37 s = (test_struct *)m3; // expected-error {{conversion between matrix type 'sx4x4' (aka 'short \ 39 m3 = (sx4x4)s; // expected-error {{conversion between matrix type 'sx4x4' (aka 'short \ 61 m2 = (double_10x10)m1; // expected-error {{conversion between matrix types 'double_10x10' \ 68 …m6 = (unsigned_int_10x10)m4; // expected-error {{conversion between matrix types 'unsigned_int_10x… 71 …f = (float)m4; // expected-error {{conversion between matrix type 'signed_int_12x12'… [all …]
|
H A D | vector-gcc-compat.cpp | 125 …v4f32_a = v4f32_a + (16777219); // expected-error {{cannot convert between scalar type 'int' and v… in floatTestConstant() 160 …v4f32_a = v4f32_a + c; // expected-error {{cannot convert between scalar type 'unsigned int' and v… in floatTestUnsignedType() 161 …v4f32_a = v4f32_a + d; // expected-error {{cannot convert between scalar type 'unsigned long long'… in floatTestUnsignedType() 166 …v4f64_b = v4f64_b + d; // expected-error {{cannot convert between scalar type 'unsigned long long'… in floatTestUnsignedType() 175 …v4f32_a = v4f32_a + c; // expected-error {{cannot convert between scalar type 'int' and vector typ… in floatTestSignedType() 176 …v4f32_a = v4f32_a + d; // expected-error {{cannot convert between scalar type 'long long' and vect… in floatTestSignedType() 181 …v4f64_b = v4f64_b + d; // expected-error {{cannot convert between scalar type 'long long' and vect… in floatTestSignedType() 200 …v2i16_a = v2i16_a + d; // expected-error {{cannot convert between scalar type 'long long' and vect… in intTestType() 205 …v2i8_a = v2i8_a + d; // expected-error {{cannot convert between scalar type 'long long' and vector… in intTestType() 206 …v2i8_a = v2i8_a + c; // expected-error {{cannot convert between scalar type 'int' and vector type … in intTestType() [all …]
|
H A D | vector-gcc-compat.c | 150 …v4f32_a = v4f32_a + (16777219); // expected-error {{cannot convert between scalar type 'int' and v… in floatTestConstant() 185 …v4f32_a = v4f32_a + c; // expected-error {{cannot convert between scalar type 'unsigned int' and v… in floatTestUnsignedType() 186 …v4f32_a = v4f32_a + d; // expected-error {{cannot convert between scalar type 'unsigned long long'… in floatTestUnsignedType() 191 …v4f64_b = v4f64_b + d; // expected-error {{cannot convert between scalar type 'unsigned long long'… in floatTestUnsignedType() 200 …v4f32_a = v4f32_a + c; // expected-error {{cannot convert between scalar type 'int' and vector typ… in floatTestSignedType() 201 …v4f32_a = v4f32_a + d; // expected-error {{cannot convert between scalar type 'long long' and vect… in floatTestSignedType() 206 …v4f64_b = v4f64_b + d; // expected-error {{cannot convert between scalar type 'long long' and vect… in floatTestSignedType() 225 …v2i16_a = v2i16_a + d; // expected-error {{cannot convert between scalar type 'long long' and vect… in intTestType() 230 …v2i8_a = v2i8_a + d; // expected-error {{cannot convert between scalar type 'long long' and vector… in intTestType() 231 …v2i8_a = v2i8_a + c; // expected-error {{cannot convert between scalar type 'int' and vector type … in intTestType() [all …]
|
H A D | fp16vec-sema.c | 36 // Implicit conversion between half vectors and float vectors are not allowed. in testFP16Vec() 39 hv0 = (half4)fv0; // expected-error{{invalid conversion between}} in testFP16Vec() 40 fv0 = (float4)hv0; // expected-error{{invalid conversion between}} in testFP16Vec() 43 hv0 = hv0 + fv1; // expected-error{{cannot convert between vector}} in testFP16Vec() 44 hv0 = c ? hv0 : fv1; // expected-error{{cannot convert between vector}} in testFP16Vec() 45 sv0 = hv0 == fv1; // expected-error{{cannot convert between vector}} in testFP16Vec() 46 sv0 = hv0 < fv1; // expected-error{{cannot convert between vector}} in testFP16Vec() 47 sv0 = hv0 || fv1; // expected-error{{cannot convert between vector}} expected-error{{invalid operands to binary expression}} in testFP16Vec()
|
H A D | ext_vector_casts.c | 27 vec3 += vec2; // expected-error {{cannot convert between vector values of different size}} in test() 28 vec4 += vec3; // expected-error {{cannot convert between vector values of different size}} in test() 39 i = (int)ivec4; // expected-error {{invalid conversion between vector type 'int4' (vector of 4 'int' values) and integer type 'int' of different size}} in test() 42 ivec4 = (int4)ptr; // expected-error {{invalid conversion between vector type 'int4' (vector of 4 'int' values) and scalar type 'int *'}} in test() 44 vec4 = (float4)vec2; // expected-error {{invalid conversion between ext-vector type 'float4' (vector of 4 'float' values) and 'float2' (vector of 2 'float' values)}} in test() 51 ivec4 += vec4; // expected-error {{cannot convert between vector values of different size ('int4' (vector of 4 'int' values) and 'float4' (vector of 4 'float' values))}} in test() 55 ivec4 += ptr; // expected-error {{cannot convert between vector and non-scalar values ('int4' (vector of 4 'int' values) and 'int *')}} 95 return (C3DVector3)vabsq_f32((float32x4_t)a); // expected-error {{invalid conversion between ext-vector type 'float32x4_t' (vector of 4 'float' values) and 'C3DVector3' (vector of 3 'float' values)}} in splats() 110 vs = vs + 1.f; // expected-error {{cannot convert between vector values of different size}} in splats() 114 vi = vi + 2.0; // expected-error {{cannot convert between vecto in splats() [all...] |
H A D | vector-cast.c | 21 v2 = (t2)v1; // expected-error {{invalid conversion between vector type \ in f() 23 v1 = (t1)v2; // expected-error {{invalid conversion between vector type \ 27 v1 = (t1)(char *)10; // expected-error {{invalid conversion between vector \ 30 v1 = (t1)(short)10; // expected-error {{invalid conversion between vector \ 34 short r2 = (short)v1; // expected-error {{invalid conversion between vector \ 36 char *r3 = (char *)v1; // expected-error {{invalid conversion between vector\ 59 …f2 += d; // expected-error {{cannot convert between scalar type 'double' and vector type 'float2' … in f4() 65 …// LAX conversions between scalar and vector types require same size and one element sized vectors. in f4()
|
H A D | aarch64-sve-vector-arith-ops.c | 46 …(void)(i16 + f16); // expected-error{{cannot convert between vector type 'svfloat16_t' (aka '__SVF… in add() 57 …(void)(u16 + f16); // expected-error{{cannot convert between vector type 'svfloat16_t' (aka '__SVF… in add() 69 …(void)(i32 + f32); // expected-error{{cannot convert between vector type 'svfloat32_t' (aka '__SVF… in add() 80 …(void)(u32 + f32); // expected-error{{cannot convert between vector type 'svfloat32_t' (aka '__SVF… in add() 92 …(void)(i64 + f64); // expected-error{{cannot convert between vector type 'svfloat64_t' (aka '__SVF… in add() 103 …(void)(u64 + f64); // expected-error{{cannot convert between vector type 'svfloat64_t' (aka '__SVF… in add() 107 …(void)(f16 + i16); // expected-error{{cannot convert between vector type 'svint16_t' (aka '__SVInt… in add() 119 …(void)(f32 + i32); // expected-error{{cannot convert between vector type 'svint32_t' (aka '__SVInt… in add() 131 …(void)(f64 + i64); // expected-error{{cannot convert between vector type 'svint64_t' (aka '__SVInt… in add() 138 (void)(s + i8); // expected-error{{cannot convert between vector and non-scalar values}} in add() [all …]
|
/llvm-project/clang/test/CodeGen/PowerPC/ |
H A D | vector-bool-pixel-altivec-init-no-parentheses.c | 52 // MIXED-ERR: error: invalid conversion between vector type '__vector __bool unsigned char' in test_vector_bool_pixel_init_no_parentheses() 53 // GCC-ERR: error: invalid conversion between vector type '__vector __bool unsigned char' (vector of 16 'unsigned char' values) and integer type 'int' of different size in test_vector_bool_pixel_init_no_parentheses() 57 // MIXED-ERR: error: invalid conversion between vector type '__vector __bool unsigned char' in test_vector_bool_pixel_init_no_parentheses() 58 // GCC-ERR: error: invalid conversion between vector type '__vector __bool unsigned char' (vector of 16 'unsigned char' values) and integer type 'char' of different size in test_vector_bool_pixel_init_no_parentheses() 65 // MIXED-ERR: error: invalid conversion between vector type '__vector __bool unsigned short' in test_vector_bool_pixel_init_no_parentheses() 66 // GCC-ERR: error: invalid conversion between vector type '__vector __bool unsigned short' (vector of 8 'unsigned short' values) and integer type 'int' of different size in test_vector_bool_pixel_init_no_parentheses() 70 // MIXED-ERR: error: invalid conversion between vector type '__vector __bool unsigned short' in test_vector_bool_pixel_init_no_parentheses() 71 // GCC-ERR: error: invalid conversion between vector type '__vector __bool unsigned short' (vector of 8 'unsigned short' values) and integer type 'short' of different size in test_vector_bool_pixel_init_no_parentheses() 78 // MIXED-ERR: error: invalid conversion between vector type '__vector __bool unsigned int' in test_vector_bool_pixel_init_no_parentheses() 79 // GCC-ERR: error: invalid conversion between vecto in test_vector_bool_pixel_init_no_parentheses() [all...] |
/llvm-project/clang/test/SemaCUDA/ |
H A D | overloaded-delete.cu | 22 // Again, there should be no ambiguity between which operator delete we call. in test_default_global_delete_hd() 27 // Again, there should be no ambiguity between which operator delete we call. in test_default_global_delete() 31 // Again, there should be no ambiguity between which operator delete we call. in test_default_global_delete() 39 // Again, there should be no ambiguity between which operator delete we call. in test_partial_global_delete_hd() 44 // Again, there should be no ambiguity between which operator delete we call. in test_partial_global_delete() 48 // Again, there should be no ambiguity between which operator delete we call. in test_partial_global_delete() 58 // Again, there should be no ambiguity between which operator delete we call. in test_overloaded_global_delete_hd() 63 // Again, there should be no ambiguity between which operator delete we call. in test_overloaded_global_delete() 67 // Again, there should be no ambiguity between which operator delete we call. in test_overloaded_global_delete()
|
/llvm-project/clang/test/CXX/expr/expr.arith.conv/ |
H A D | p2.cpp | 12 void(e1 * e2); // expected-warning {{arithmetic between different enumeration types}} in f() 13 …void(e1 * d); // expected-warning {{arithmetic between enumeration type 'enum E1' and floating-poi… in f() 14 …void(d * e1); // expected-warning {{arithmetic between floating-point type 'double' and enumeratio… in f() 17 void(e1 + e2); // expected-warning {{arithmetic between different enumeration types}} in f() 18 …void(e1 + d); // expected-warning {{arithmetic between enumeration type 'enum E1' and floating-poi… in f() 19 …void(d + e1); // expected-warning {{arithmetic between floating-point type 'double' and enumeratio… in f() 39 …void(b ? e1 : e2); // expected-warning {{conditional expression between different enumeration type… in f() 40 …void(b ? e1 : d); // expected-warning {{conditional expression between enumeration type 'enum E1' … in f() 41 …void(b ? d : e1); // expected-warning {{conditional expression between floating-point type 'double… in f()
|
/llvm-project/clang/test/Analysis/ |
H A D | std-c-library-functions-arg-constraints-notes.cpp | 94 __range_m1_1(3); // expected-warning{{is 3 but should be between -1 and 1}} in test_range_values() 100 __range_m10_10(11); // expected-warning{{is 11 but should be between -10 and 10}} in test_range_values() 103 __range_m10_10(-11); // expected-warning{{is -11 but should be between -10 and 10}} in test_range_values() 106 __range_1_2__4_6(3); // expected-warning{{is 3 but should be 1 or 2 or between 4 and 6}} in test_range_values() 149 __range_out_m1_1(-1); // expected-warning{{is -1 but should be not between -1 and 1}} in test_range_values_out() 155 __range_out_m10_10(0); // expected-warning{{is 0 but should be not between -10 and 10}} in test_range_values_out() 158 …_out_1_2__4_6(1); // expected-warning{{is 1 but should be not 1 and not 2 and not between 4 and 6}} in test_range_values_out() 209 __range_1_2__4_6(x); // expected-warning{{is 3 but should be 1 or 2 or between 4 and 6 [}} in test_explanation() 213 __range_1_2__4_6(x); // expected-warning{{is >= 7 but should be 1 or 2 or between 4 and 6 [}} in test_explanation() 217 __range_1_2__4_6(x); // expected-warning{{is <= 0 but should be 1 or 2 or between 4 and 6 [}} in test_explanation() [all …]
|
/llvm-project/llvm/test/MC/SystemZ/ |
H A D | fixups-out-of-range-02.s | 9 # CHECK: error: operand out of range (4096 not between -4096 and 4094) 12 # CHECK-NEXT: error: operand out of range (-4098 not between -4096 and 4094) 25 # CHECK-NEXT: error: operand out of range (16777220 not between -16777216 and 16777214) 28 # CHECK-NEXT: error: operand out of range (-16777222 not between -16777216 and 16777214) 41 # CHECK-NEXT: error: operand out of range (65540 not between -65536 and 65534) 44 # CHECK-NEXT: error: operand out of range (-65542 not between -65536 and 65534)
|
/llvm-project/clang/test/SemaObjC/ |
H A D | comptypes-7.m | 49 …if (obj == i) foo() ; // expected-warning {{comparison between pointer and integer ('id' and 'int'… 50 …if (i == obj) foo() ; // expected-warning {{comparison between pointer and integer ('int' and 'id'… 54 …if (obj_c == i) foo() ; // expected-warning {{comparison between pointer and integer ('MyClass *' … 55 …if (i == obj_c) foo() ; // expected-warning {{comparison between pointer and integer ('int' and 'M… 59 …if (obj_p == i) foo() ; // expected-warning {{comparison between pointer and integer ('id<MyProtoc… 60 …if (i == obj_p) foo() ; // expected-warning {{comparison between pointer and integer ('int' and 'i… 64 …if (obj_C == i) foo() ; // expected-warning {{comparison between pointer and integer ('Class' and … 65 …if (i == obj_C) foo() ; // expected-warning {{comparison between pointer and integer ('int' and 'C…
|
/llvm-project/clang/test/SemaObjCXX/ |
H A D | comptypes-7.mm | 48 …if (obj == i) foo() ; // expected-error {{comparison between pointer and integer ('id' and 'int')}} 49 …if (i == obj) foo() ; // expected-error {{comparison between pointer and integer ('int' and 'id')}} 53 …if (obj_c == i) foo() ; // expected-error {{comparison between pointer and integer ('MyClass *' an… 54 …if (i == obj_c) foo() ; // expected-error {{comparison between pointer and integer ('int' and 'MyC… 58 …if (obj_p == i) foo() ; // expected-error {{comparison between pointer and integer ('id<MyProtocol… 59 …if (i == obj_p) foo() ; // expected-error {{comparison between pointer and integer ('int' and 'id<… 63 …if (obj_C == i) foo() ; // expected-error {{comparison between pointer and integer ('Class' and 'i… 64 …if (i == obj_C) foo() ; // expected-error {{comparison between pointer and integer ('int' and 'Cla…
|
/llvm-project/llvm/test/Analysis/ScalarEvolution/ |
H A D | limit-depth.ll | 70 br i1 %cond, label %loop, label %between 72 between: 77 %iv2 = phi i64 [ %se, %between ], [ %iv2.inc, %loop2 ] 98 br i1 %cond, label %loop, label %between 100 between: 105 %iv2 = phi i64 [ %ze, %between ], [ %iv2.inc, %loop2 ] 126 br i1 %cond, label %loop, label %between 128 between: 133 %iv2 = phi i64 [ %trunc, %between ], [ %iv2.inc, %loop2 ]
|
/llvm-project/third-party/unittest/googlemock/src/ |
H A D | gmock-cardinalities.cc | 49 // Implements the Between(m, n) cardinality. 106 // Describes the Between(m, n) cardinality in human-friendly text. 122 *os << "called between " << min_ << " and " << max_ << " times"; in DescribeTo() 139 GTEST_API_ Cardinality AtLeast(int n) { return Between(n, INT_MAX); } in AtLeast() 142 GTEST_API_ Cardinality AtMost(int n) { return Between(0, n); } in AtMost() 147 // Creates a cardinality that allows between min and max calls. 148 GTEST_API_ Cardinality Between(int min, int max) { in Between() function 153 GTEST_API_ Cardinality Exactly(int n) { return Between(n, n); } in Exactly()
|