/external/clang/test/Sema/ |
floating-point-compare.c | 4 return x == y; // expected-warning {{comparing floating point with ==}} 8 return x != y; // expected-warning {{comparing floating point with ==}} 12 return x == x; // no-warning 16 return x == 0.0; // no-warning {{comparing}} 20 return x == __builtin_inf(); // no-warning 24 return x == 3.14159; // expected-warning {{comparing}}
|
implicit-int.c | 3 foo() { // expected-warning {{type specifier missing, defaults to 'int'}} 7 y; // expected-warning {{type specifier missing, defaults to 'int'}} 10 void f((x)); // expected-warning {{type specifier missing, defaults to 'int'}} 21 h19_insline(n) // expected-warning {{parameter 'n' was not declared, defaulting to type 'int'}} 23 ILPAD(); // expected-warning {{type specifier missing, defaults to 'int'}} 27 __extension__ __attribute__((packed)) x : 4; // expected-warning {{type specifier missing, defaults to 'int'}}
|
warn-unused-value.c | 12 1,foo(); // expected-warning {{expression result unused}} 16 i; // expected-warning {{expression result unused}} 18 i,foo(); // expected-warning {{expression result unused}} 19 foo(),i; // expected-warning {{expression result unused}} 21 i,j,foo(); // expected-warning {{expression result unused}} expected-warning {{expression result unused}} 22 i,foo(),j; // expected-warning {{expression result unused}} expected-warning {{expression result unused}} 23 foo(),i,j; // expected-warning {{expression result unused}} expected-warning {{expression result unused} [all...] |
ext_vector_comparisons.c | 9 return vec == vec; // expected-warning{{self-comparison always evaluates to a constant}} 10 return vec != vec; // expected-warning{{self-comparison always evaluates to a constant}} 11 return vec < vec; // expected-warning{{self-comparison always evaluates to a constant}} 12 return vec <= vec; // expected-warning{{self-comparison always evaluates to a constant}} 13 return vec > vec; // expected-warning{{self-comparison always evaluates to a constant}} 14 return vec >= vec; // expected-warning{{self-comparison always evaluates to a constant}} 23 // comparisons to self. no warning, they're floats 24 return vec == vec; // no-warning 25 return vec != vec; // no-warning 26 return vec < vec; // no-warning [all...] |
warn-outof-range-assign-enum.c | 11 CCTestEnum test = 50; // expected-warning {{integer constant not in range of enumerated type 'CCTestEnum'}} 12 CCTestEnum test1 = -50; // expected-warning {{integer constant not in range of enumerated type 'CCTestEnum'}} 14 // Explicit cast should silence the warning. 15 static const CCTestEnum SilenceWithCast1 = 51; // expected-warning {{integer constant not in range of enumerated type 'CCTestEnum'}} 16 static const CCTestEnum SilenceWithCast2 = (CCTestEnum) 51; // no-warning 17 static const CCTestEnum SilenceWithCast3 = (const CCTestEnum) 51; // no-warning 18 static const CCTestEnum SilenceWithCast4 = (const volatile CCTestEnum) 51; // no-warning 21 CCTestEnum SilenceWithCast1 = 51; // expected-warning {{integer constant not in range of enumerated type 'CCTestEnum'}} 22 CCTestEnum SilenceWithCast2 = (CCTestEnum) 51; // no-warning 23 CCTestEnum SilenceWithCast3 = (const CCTestEnum) 51; // no-warning [all...] |
warn-unreachable.c | 12 goto e; // expected-warning {{will never be executed}} 16 goto b; // expected-warning {{will never be executed}} 17 goto a; // expected-warning {{will never be executed}} 33 dead(); // expected-warning {{will never be executed}} 37 dead(); // expected-warning {{will never be executed}} 41 + // expected-warning {{will never be executed}} 49 goto a4; // expected-warning {{will never be executed}} 54 dead(); // expected-warning {{will never be executed}} 68 dead(); // expected-warning {{will never be executed}} 81 dead(); // expected-warning {{will never be executed} [all...] |
attr-unknown.c | 3 int x __attribute__((foobar)); // expected-warning {{unknown attribute 'foobar' ignored}} 4 void z() __attribute__((bogusattr)); // expected-warning {{unknown attribute 'bogusattr' ignored}}
|
warn-missing-braces.c | 3 int a[2][2] = { 0, 1, 2, 3 }; // expected-warning{{suggest braces}} expected-warning{{suggest braces}}
|
/external/valgrind/memcheck/tests/ |
mismatches.cpp | 6 delete fpointer; // should give warning 8 delete [] fpointer; // should give warning 13 delete nvec; // should give a warning 15 free (nvec); // should give a warning 20 delete [] n; // should give a warning 22 free(n); // should give a warning
|
/toolchain/binutils/binutils-2.27/gas/testsuite/gas/arm/ |
ldrd-unpredictable.l | 2 [^:]*:6: Warning: index register overlaps transfer register 3 [^:]*:7: Warning: index register overlaps transfer register 4 [^:]*:8: Warning: source register same as write-back base 5 [^:]*:9: Warning: base register written back, and overlaps second transfer register 6 [^:]*:13: Warning: source register same as write-back base 7 [^:]*:14: Warning: base register written back, and overlaps second transfer register
|
/external/clang/test/SemaCXX/ |
warn-empty-body.cpp | 11 if (x); // expected-warning {{if statement has empty body}} expected-note{{put the semicolon on a separate line to silence this warning}} 15 if (x == MACRO_A); // expected-warning {{if statement has empty body}} expected-note{{put the semicolon on a separate line to silence this warning}} 16 if (MACRO_A == x); // expected-warning {{if statement has empty body}} expected-note{{put the semicolon on a separate line to silence this warning}} 20 for (i = 0; i < x; i++); { // expected-warning{{for loop has empty body}} expected-note{{put the semicolon on a separate line to silence this warning}} 25 for (i = 0; i < x; i++); // expected-warning{{for loop has empty body}} expected-note{{put the semicolon on a separate line to silence this warning}} [all...] |
bool-compare.cpp | 8 if(b > true) {} // expected-warning {{comparison of true with expression of type 'bool' is always false}} 9 if(b < true) {} // no warning 10 if(b >= true) {} // no warning 11 if(b <= true) {} // expected-warning {{comparison of true with expression of type 'bool' is always true}} 12 if(b == true) {} // no warning 13 if(b != true) {} // no warning 15 if(b > false) {} // no warning 16 if(b < false) {} // expected-warning {{comparison of false with expression of type 'bool' is always false}} 17 if(b >= false) {} // expected-warning {{comparison of false with expression of type 'bool' is always true}} 18 if(b <= false) {} // no warning [all...] |
attr-deprecated-replacement-error.cpp | 7 int a1 [[deprecated("warning", "fixit")]]; // expected-error{{'deprecated' attribute takes no more than 1 argument}} 8 int a2 [[deprecated("warning", 1)]]; // expected-error{{'deprecated' attribute takes no more than 1 argument}} 10 int b1 [[gnu::deprecated("warning", "fixit")]]; // expected-error{{'deprecated' attribute takes no more than 1 argument}} 11 int b2 [[gnu::deprecated("warning", 1)]]; // expected-error{{'deprecated' attribute takes no more than 1 argument}} 13 __declspec(deprecated("warning", "fixit")) int c1; // expected-error{{'deprecated' attribute takes no more than 1 argument}} 14 __declspec(deprecated("warning", 1)) int c2; // expected-error{{'deprecated' attribute takes no more than 1 argument}} 16 int d1 __attribute__((deprecated("warning", "fixit"))); 17 int d2 __attribute__((deprecated("warning", 1))); // expected-error{{'deprecated' attribute requires a string}}
|
/external/llvm/test/MC/Disassembler/ARM/ |
fullfp16-arm-neg.txt | 3 # CHECK: warning: invalid instruction encoding 6 # CHECK: warning: invalid instruction encoding 9 # CHECK: warning: invalid instruction encoding 12 # CHECK: warning: invalid instruction encoding 15 # CHECK: warning: invalid instruction encoding 18 # CHECK: warning: invalid instruction encoding 21 # CHECK: warning: invalid instruction encoding 24 # CHECK: warning: invalid instruction encoding 27 # CHECK: warning: invalid instruction encoding 30 # CHECK: warning: invalid instruction encodin [all...] |
fullfp16-thumb-neg.txt | 3 # CHECK: warning: invalid instruction encoding 6 # CHECK: warning: invalid instruction encoding 9 # CHECK: warning: invalid instruction encoding 12 # CHECK: warning: invalid instruction encoding 15 # CHECK: warning: invalid instruction encoding 18 # CHECK: warning: invalid instruction encoding 21 # CHECK: warning: invalid instruction encoding 24 # CHECK: warning: invalid instruction encoding 27 # CHECK: warning: invalid instruction encoding 30 # CHECK: warning: invalid instruction encodin [all...] |
/external/clang/test/Analysis/ |
NewDeleteLeaks-PR19102.cpp | 25 new int; // expected-warning@+1 {{Potential memory leak}} 26 new A0; // expected-warning@+1 {{Potential memory leak}} 27 new A1(0); // expected-warning@+1 {{Potential memory leak}} 28 new A2; // expected-warning@+1 {{Potential memory leak}} 32 new A2(s); // expected-warning@+1 {{Potential memory leak}} 33 new A2(&(s.i)); // expected-warning@+1 {{Potential memory leak}} 34 new A2(ps); // no warning 35 new A2(*ps, 1); // no warning 36 new A2(1, &ps); // no warning 39 A2 *a2p1 = new A2; // expected-warning@+1 {{Potential leak of memory} [all...] |
global_region_invalidation.mm | 12 clang_analyzer_eval(p == 0); // expected-warning{{TRUE}} 20 clang_analyzer_eval(globalIntRef == 42); // expected-warning{{UNKNOWN}} 31 clang_analyzer_eval(globalInt == 42); // expected-warning{{UNKNOWN}} 32 clang_analyzer_eval(globalStruct.value == 43); // expected-warning{{UNKNOWN}} 38 clang_analyzer_eval(globalInt == 42); // expected-warning{{TRUE}} 39 clang_analyzer_eval(globalStruct.value == 43); // expected-warning{{TRUE}} 42 clang_analyzer_eval(globalInt == 42); // expected-warning{{UNKNOWN}} 43 clang_analyzer_eval(globalStruct.value == 43); // expected-warning{{UNKNOWN}} 50 clang_analyzer_eval(globalInt == 42); // expected-warning{{TRUE}} 51 clang_analyzer_eval(globalStruct.value == 43); // expected-warning{{TRUE} [all...] |
taint-tester.c | 18 addr += n;// expected-warning + {{tainted}} 19 *addr = n; // expected-warning + {{tainted}} 21 double tdiv = n / 30; // expected-warning+ {{tainted}} 22 char *loc_cast = (char *) n; // expected-warning +{{tainted}} 23 char tinc = tdiv++; // expected-warning + {{tainted}} 24 int tincdec = (char)tinc--; // expected-warning+{{tainted}} 27 int tprtarithmetic1 = *(addr+1); // expected-warning + {{tainted}} 32 int ptrDeref = *ptr; // expected-warning + {{tainted}} 33 int _ptrDeref = ptrDeref + 13; // expected-warning + {{tainted}} 38 int addrDeref = *addr; // expected-warning + {{tainted} [all...] |
func.c | 21 clang_analyzer_eval(!f); // expected-warning{{UNKNOWN}} 23 clang_analyzer_eval(!f); // expected-warning{{FALSE}} 25 clang_analyzer_eval(!g); // expected-warning{{UNKNOWN}} 27 clang_analyzer_eval(!g); // expected-warning{{FALSE}} 32 f(); // expected-warning{{Called function pointer is null}} 33 clang_analyzer_warnIfReached(); // no-warning 39 f(); // expected-warning{{Called function pointer is null}} 40 clang_analyzer_warnIfReached(); // no-warning
|
/external/clang/test/Parser/ |
pragma-pack.c | 6 /* expected-warning {{missing '(' after '#pragma pack'}}*/ #pragma pack 10 10 /*expected-warning {{unknown action for '#pragma pack'}}*/ #pragma pack(hello) 14 /* expected-warning {{expected integer or identifier in '#pragma pack'}}*/ #pragma pack(push,) 15 /* expected-warning {{expected integer or identifier in '#pragma pack'}}*/ #pragma pack(push,) 16 /* expected-warning {{expected integer or identifier in '#pragma pack'}}*/ #pragma pack(pop,) 19 /* expected-warning {{expected integer or identifier in '#pragma pack'}}*/ #pragma pack(push,i, 20 /* expected-warning {{expected integer or identifier in '#pragma pack'}}*/ #pragma pack(push,i,) 21 /* expected-warning {{expected integer or identifier in '#pragma pack'}}*/ #pragma pack(push,i,help) 24 /* expected-warning {{missing ')' after '#pragma pack'}}*/ #pragma pack(push,8, 25 /* expected-warning {{missing ')' after '#pragma pack'}}*/ #pragma pack(push,8,) [all...] |
/toolchain/binutils/binutils-2.27/gas/testsuite/gas/ia64/ |
reg-err.l | 2 .*:3: (Error|Warning): Invalid use of `r0' as output operand 3 .*:4: (Error|Warning): Invalid use of `r0' as base update address operand 4 .*:5: (Error|Warning): Invalid duplicate use of `r1' 5 .*:6: (Error|Warning): Invalid use of `r0' as base update address operand 6 .*:7: (Error|Warning): Invalid duplicate use of `p1' 7 .*:8: (Error|Warning): Invalid use of `f0' as output operand 8 .*:9: (Error|Warning): Invalid use of `f1' as output operand 9 .*:10: (Error|Warning): Invalid use of `f0' as output operand 10 .*:11: (Error|Warning): Invalid use of `f1' as output operand 11 .*:12: (Error|Warning): Invalid use of `f0' as output operan [all...] |
/toolchain/binutils/binutils-2.27/gas/testsuite/gas/mips/ |
micromips-branch-delay.l | 2 .*:17: Warning: wrong size instruction in a 16-bit branch delay slot 3 .*:19: Warning: wrong size instruction in a 16-bit branch delay slot 4 .*:21: Warning: macro instruction expanded into a wrong size instruction in a 16-bit branch delay slot 5 .*:40: Warning: wrong size instruction in a 16-bit branch delay slot 6 .*:44: Warning: wrong size instruction in a 16-bit branch delay slot 7 .*:46: Warning: wrong size instruction in a 16-bit branch delay slot 8 .*:71: Warning: wrong size instruction in a 16-bit branch delay slot 9 .*:90: Warning: macro instruction expanded into multiple instructions in a branch delay slot 10 .*:92: Warning: macro instruction expanded into a wrong size instruction in a 16-bit branch delay slot 11 .*:94: Warning: macro instruction expanded into a wrong size instruction in a 16-bit branch delay slo [all...] |
relax-swap1.l | 2 .*:9: Warning: relaxed out-of-range branch into a jump 3 .*:14: Warning: relaxed out-of-range branch into a jump 4 .*:19: Warning: relaxed out-of-range branch into a jump 5 .*:24: Warning: relaxed out-of-range branch into a jump 6 .*:28: Warning: relaxed out-of-range branch into a jump 7 .*:33: Warning: relaxed out-of-range branch into a jump 8 .*:37: Warning: relaxed out-of-range branch into a jump 9 .*:42: Warning: relaxed out-of-range branch into a jump 10 .*:46: Warning: relaxed out-of-range branch into a jump 11 .*:51: Warning: relaxed out-of-range branch into a jum [all...] |
/external/clang/test/Preprocessor/ |
pragma_microsoft.cpp | 3 #pragma warning(push, 4_D) // expected-warning {{requires a level between 0 and 4}}
|
/external/clang/test/SemaObjC/ |
comptypes-7.m | 27 obj = i; // expected-warning {{incompatible integer to pointer conversion assigning to 'id' from 'int'}} 28 obj = j; // expected-warning {{incompatible pointer types assigning to 'id' from 'int *'}} 30 obj_p = i; // expected-warning {{incompatible integer to pointer conversion assigning to 'id<MyProtocol>' from 'int'}} 31 obj_p = j; // expected-warning {{incompatible pointer types assigning to 'id<MyProtocol>' from 'int *'}} 33 obj_c = i; // expected-warning {{incompatible integer to pointer conversion assigning to 'MyClass *' from 'int'}} 34 obj_c = j; // expected-warning {{incompatible pointer types assigning to 'MyClass *' from 'int *'}} 36 obj_C = i; // expected-warning {{incompatible integer to pointer conversion assigning to 'Class' from 'int'}} 37 obj_C = j; // expected-warning {{incompatible pointer types assigning to 'Class' from 'int *'}} 39 i = obj; // expected-warning {{incompatible pointer to integer conversion assigning to 'int' from 'id'}} 40 i = obj_p; // expected-warning {{incompatible pointer to integer conversion assigning to 'int' from 'id<MyProtocol>'} [all...] |