/external/valgrind/memcheck/tests/ |
D | err_disable4.stderr.exp | 4 WARNING: exiting thread has error reporting disabled. 5 WARNING: possibly as a result of some mistake in the use 6 WARNING: of the VALGRIND_DISABLE_ERROR_REPORTING macros. 7 WARNING: exiting thread has error reporting disabled. 8 WARNING: possibly as a result of some mistake in the use 9 WARNING: of the VALGRIND_DISABLE_ERROR_REPORTING macros. 10 WARNING: exiting thread has error reporting disabled. 11 WARNING: possibly as a result of some mistake in the use 12 WARNING: of the VALGRIND_DISABLE_ERROR_REPORTING macros. 13 WARNING: exiting thread has error reporting disabled. [all …]
|
/external/clang/test/Analysis/ |
D | pthreadlock.c | 17 pthread_mutex_lock(&mtx1); // no-warning in ok1() 23 pthread_mutex_unlock(&mtx1); // no-warning in ok2() 29 pthread_mutex_lock(&mtx1); // no-warning in ok3() 30 pthread_mutex_unlock(&mtx1); // no-warning in ok3() 31 pthread_mutex_lock(&mtx1); // no-warning in ok3() 32 pthread_mutex_unlock(&mtx1); // no-warning in ok3() 38 pthread_mutex_lock(&mtx1); // no-warning in ok4() 39 pthread_mutex_unlock(&mtx1); // no-warning in ok4() 40 pthread_mutex_lock(&mtx2); // no-warning in ok4() 41 pthread_mutex_unlock(&mtx2); // no-warning in ok4() [all …]
|
D | additive-folding-range-constraints.c | 15 clang_analyzer_eval(a < UINT_MAX-1); // expected-warning{{TRUE}} in smallAdjustmentGT() 17 clang_analyzer_eval(a == UINT_MAX-1 || a == UINT_MAX); // expected-warning{{TRUE}} in smallAdjustmentGT() 22 clang_analyzer_eval(a < UINT_MAX-1 || a == UINT_MAX); // expected-warning{{TRUE}} in smallAdjustmentGE() 24 clang_analyzer_eval(a == UINT_MAX-1); // expected-warning{{TRUE}} in smallAdjustmentGE() 29 clang_analyzer_eval(a == 0 || a == UINT_MAX); // expected-warning{{TRUE}} in smallAdjustmentLT() 34 clang_analyzer_eval(a == 0 || a == 1 || a == UINT_MAX); // expected-warning{{TRUE}} in smallAdjustmentLE() 43 clang_analyzer_eval(a == 1); // expected-warning{{TRUE}} in largeAdjustmentGT() 45 clang_analyzer_eval(a != 1); // expected-warning{{TRUE}} in largeAdjustmentGT() 50 clang_analyzer_eval(a == 1 || a == 0); // expected-warning{{TRUE}} in largeAdjustmentGE() 52 clang_analyzer_eval(a > 1); // expected-warning{{TRUE}} in largeAdjustmentGE() [all …]
|
D | pr22954.c | 28 clang_analyzer_eval(a0.s1[0] == 'a'); // expected-warning{{UNKNOWN}} in f0() 29 clang_analyzer_eval(a0.s1[1] == 'b'); // expected-warning{{UNKNOWN}} in f0() 30 clang_analyzer_eval(a0.s1[2] == 'c'); // expected-warning{{UNKNOWN}} in f0() 31 clang_analyzer_eval(a0.s1[3] == 'd'); // expected-warning{{UNKNOWN}} in f0() 32 clang_analyzer_eval(a0.s2 == 0); // expected-warning{{UNKNOWN}} in f0() 33 free(a0.s2); // no warning in f0() 42 clang_analyzer_eval(a1.s1[0] == 'a'); // expected-warning{{UNKNOWN}} in f1() 43 clang_analyzer_eval(a1.s1[1] == 'b'); // expected-warning{{UNKNOWN}} in f1() 44 clang_analyzer_eval(a1.s1[2] == 'c'); // expected-warning{{UNKNOWN}} in f1() 45 clang_analyzer_eval(a1.s1[3] == 'd'); // expected-warning{{UNKNOWN}} in f1() [all …]
|
D | ptr-arith.c | 39 …int d = &y - &x; // expected-warning{{Subtraction of two pointers that do not point to the same me… in f3() 44 d = q-p; // no-warning in f3() 49 …p = (int*) 0x10000; // expected-warning{{Using a fixed address is not portable because that addres… in f4() 55 …p = &x + 1; // expected-warning{{Pointer arithmetic done on non-array variables means reliance on… in f5() 58 p = a + 1; // no-warning in f5() 63 int d = q - p; // no-warning in f6() 69 clang_analyzer_eval(&&start != 0); // expected-warning{{TRUE}} in null_operand() 70 clang_analyzer_eval(&&start >= 0); // expected-warning{{TRUE}} in null_operand() 71 clang_analyzer_eval(&&start > 0); // expected-warning{{TRUE}} in null_operand() 72 clang_analyzer_eval((&&start - 0) != 0); // expected-warning{{TRUE}} in null_operand() [all …]
|
D | identical-expressions.cpp | 3 /* Only one expected warning per function allowed at the very end. */ 24 return (5.14F != 5.14F); // no warning in checkNotEqualFloatLiteralCompare1() 28 return (6.14F != 7.14F); // no warning in checkNotEqualFloatLiteralCompare2() 34 return (f != g); // no warning in checkNotEqualFloatDeclCompare1() 39 return (f != f); // no warning in checkNotEqualFloatDeclCompare12() 44 return (f != 7.1F); // no warning in checkNotEqualFloatDeclCompare3() 49 return (7.1F != f); // no warning in checkNotEqualFloatDeclCompare4() 55 return (t != f); // no warning in checkNotEqualFloatDeclCompare5() 61 return (f != t); // no warning in checkNotEqualFloatDeclCompare6() 68 …return ((int)f != (int)f); // expected-warning {{comparison of identical expressions always evalua… in checkNotEqualCastFloatDeclCompare11() [all …]
|
D | ctor.mm | 22 *(char *)0 = 1; // expected-warning{{Dereference of null pointer}} 35 clang_analyzer_eval(b.x == 42); // expected-warning{{TRUE}} 49 clang_analyzer_eval(b.x == 42); // expected-warning{{TRUE}} 87 clang_analyzer_eval(a == 1); // expected-warning{{TRUE}} 88 clang_analyzer_eval(b == 2); // expected-warning{{TRUE}} 89 clang_analyzer_eval(c == 3); // expected-warning{{TRUE}} 91 clang_analyzer_eval(obj.get() == 3); // expected-warning{{TRUE}} 95 clang_analyzer_eval(base->get() == 3); // expected-warning{{TRUE}} 103 clang_analyzer_checkInlined(true); // expected-warning{{TRUE}} 126 clang_analyzer_eval(result); // expected-warning{{TRUE}} [all …]
|
D | switch-case.c | 21 clang_analyzer_eval(t == 1); // expected-warning{{TRUE}} in testAdjustment() 24 clang_analyzer_eval(t > 1); // expected-warning{{TRUE}} in testAdjustment() 25 clang_analyzer_eval(t + 2 <= 11); // expected-warning{{TRUE}} in testAdjustment() 26 clang_analyzer_eval(t > 2); // expected-warning{{UNKNOWN}} in testAdjustment() 27 clang_analyzer_eval(t + 1 == 3); // expected-warning{{UNKNOWN}} in testAdjustment() 28 clang_analyzer_eval(t + 1 == 10); // expected-warning{{UNKNOWN}} in testAdjustment() 31 clang_analyzer_warnIfReached(); // expected-warning{{REACHABLE}} in testAdjustment() 39 clang_analyzer_warnIfReached(); // expected-warning{{REACHABLE}} in testUnknownVal() 42 clang_analyzer_warnIfReached(); // expected-warning{{REACHABLE}} in testUnknownVal() 45 clang_analyzer_warnIfReached(); // expected-warning{{REACHABLE}} in testUnknownVal() [all …]
|
D | array-struct-region.c | 7 char b[2] = "abc"; // expected-warning{{too long}} in string_literal_init() 10 clang_analyzer_eval(a[1] == 'b'); // expected-warning{{TRUE}} in string_literal_init() 11 clang_analyzer_eval(b[1] == 'b'); // expected-warning{{TRUE}} in string_literal_init() 12 clang_analyzer_eval(c[1] == 'b'); // expected-warning{{TRUE}} in string_literal_init() 14 clang_analyzer_eval(a[3] == 0); // expected-warning{{TRUE}} in string_literal_init() 15 clang_analyzer_eval(c[3] == 0); // expected-warning{{TRUE}} in string_literal_init() 17 clang_analyzer_eval(c[4] == 0); // expected-warning{{TRUE}} in string_literal_init() 23 …int vec[6][2] = {{0.195, 0.02}, {0.383, 0.067}, {0.55, 0.169}, // expected-warning 6 {{implicit c… in nested_compound_literals() 24 …{0.831, 0.45}, {0.924, 0.617}, {0.98, 0.805}}; // expected-warning 6 {{implicit conversion from 'd… in nested_compound_literals() 28 vec[a][0] *= rad; // no-warning in nested_compound_literals() [all …]
|
/external/llvm/test/MC/Disassembler/AArch64/ |
D | fullfp16-neon-neg.txt | 6 # CHECK: warning: invalid instruction encoding 8 # CHECK: warning: invalid instruction encoding 10 # CHECK: warning: invalid instruction encoding 12 # CHECK: warning: invalid instruction encoding 14 # CHECK: warning: invalid instruction encoding 16 # CHECK: warning: invalid instruction encoding 18 # CHECK: warning: invalid instruction encoding 20 # CHECK: warning: invalid instruction encoding 22 # CHECK: warning: invalid instruction encoding 24 # CHECK: warning: invalid instruction encoding [all …]
|
D | fullfp16-neg.txt | 5 # CHECK: warning: invalid instruction encoding 7 # CHECK: warning: invalid instruction encoding 9 # CHECK: warning: invalid instruction encoding 11 # CHECK: warning: invalid instruction encoding 13 # CHECK: warning: invalid instruction encoding 15 # CHECK: warning: invalid instruction encoding 17 # CHECK: warning: invalid instruction encoding 19 # CHECK: warning: invalid instruction encoding 21 # CHECK: warning: invalid instruction encoding 23 # CHECK: warning: invalid instruction encoding [all …]
|
/external/llvm/test/MC/ARM/ |
D | v8_IT_manual.s | 4 @ CHECK-NOT: [[@LINE+2]]:1: warning 8 @ CHECK-NOT: [[@LINE+2]]:1: warning 11 @ CHECK: [[@LINE+2]]:1: warning: deprecated instruction in IT block 14 @ CHECK: [[@LINE+2]]:1: warning: deprecated instruction in IT block 18 @ CHECK: [[@LINE+2]]:1: warning: deprecated instruction in IT block 22 @ CHECK-NOT: [[@LINE+2]]:1: warning 26 @ CHECK-NOT: [[@LINE+2]]:1: warning 30 @ CHECK: [[@LINE+2]]:1: warning: deprecated instruction in IT block 34 @ CHECK: [[@LINE+2]]:1: warning: deprecated instruction in IT block 38 @ CHECK-NOT: [[@LINE+2]]:1: warning [all …]
|
/external/llvm/test/MC/Disassembler/ARM/ |
D | fullfp16-neon-arm-neg.txt | 3 # CHECK: warning: invalid instruction encoding 4 # CHECK: warning: invalid instruction encoding 8 # CHECK: warning: invalid instruction encoding 9 # CHECK: warning: invalid instruction encoding 13 # CHECK: warning: invalid instruction encoding 14 # CHECK: warning: invalid instruction encoding 18 # CHECK: warning: invalid instruction encoding 19 # CHECK: warning: invalid instruction encoding 23 # CHECK: warning: invalid instruction encoding 24 # CHECK: warning: invalid instruction encoding [all …]
|
D | fullfp16-neon-thumb-neg.txt | 3 # CHECK: warning: invalid instruction encoding 4 # CHECK: warning: invalid instruction encoding 8 # CHECK: warning: invalid instruction encoding 9 # CHECK: warning: invalid instruction encoding 13 # CHECK: warning: invalid instruction encoding 14 # CHECK: warning: invalid instruction encoding 18 # CHECK: warning: invalid instruction encoding 19 # CHECK: warning: invalid instruction encoding 23 # CHECK: warning: invalid instruction encoding 24 # CHECK: warning: invalid instruction encoding [all …]
|
/external/clang/test/Sema/ |
D | bool-compare.c | 8 …if ((a > 2) > 1) {} // expected-warning {{comparison of constant 1 with boolean expression is alwa… in f() 10 if (a > b) {} // no warning in f() 11 if (a < b) {} // no warning in f() 12 if (a >= b) {} // no warning in f() 13 if (a <= b) {} // no warning in f() 14 if (a == b) {} // no warning in f() 15 if (a != b) {} // no warning in f() 17 if (a > 0) {} // no warning in f() 18 if (a > 1) {} // no warning in f() 19 if (a > 2) {} // no warning in f() [all …]
|
D | format-strings.c | 31 printf(s); // expected-warning {{format string is not a string literal}} in check_string_literal() 32 vprintf(s,ap); // expected-warning {{format string is not a string literal}} in check_string_literal() 33 fprintf(fp,s); // expected-warning {{format string is not a string literal}} in check_string_literal() 34 vfprintf(fp,s,ap); // expected-warning {{format string is not a string literal}} in check_string_literal() 35 asprintf(&b,s); // expected-warning {{format string is not a string lit}} in check_string_literal() 36 vasprintf(&b,s,ap); // expected-warning {{format string is not a string literal}} in check_string_literal() 37 sprintf(buf,s); // expected-warning {{format string is not a string literal}} in check_string_literal() 38 snprintf(buf,2,s); // expected-warning {{format string is not a string lit}} in check_string_literal() 39 __builtin___sprintf_chk(buf,0,-1,s); // expected-warning {{format string is not a string literal}} in check_string_literal() 40 __builtin___snprintf_chk(buf,2,0,-1,s); // expected-warning {{format string is not a string lit}} in check_string_literal() [all …]
|
D | format-strings-scanf.c | 21 scanf(s, i); // expected-warning{{ormat string is not a string literal}} in test() 22 scanf("%0d", i); // expected-warning{{zero field width in scanf format string is unused}} in test() 23 scanf("%00d", i); // expected-warning{{zero field width in scanf format string is unused}} in test() 24 …scanf("%d%[asdfasdfd", i, s); // expected-warning{{no closing ']' for '%[' in scanf format string}} in test() 27 scanf ("%" "hu" "\n", &s_x); // no-warning in test() 28 scanf("%y", i); // expected-warning{{invalid conversion specifier 'y'}} in test() 29 scanf("%%"); // no-warning in test() 30 scanf("%%%1$d", i); // no-warning in test() 31 scanf("%1$d%%", i); // no-warning in test() 32 scanf("%d", i, i); // expected-warning{{data argument not used by format string}} in test() [all …]
|
D | uninit-variables.c | 7 int x; // expected-note{{initialize the variable 'x' to silence this warning}} in test1() 8 return x; // expected-warning{{variable 'x' is uninitialized when used here}} in test1() 13 return x; // no-warning in test2() 19 return x; // no-warning in test3() 23 int x; // expected-note{{initialize the variable 'x' to silence this warning}} in test4() 24 ++x; // expected-warning{{variable 'x' is uninitialized when used here}} in test4() 29 int x, y; // expected-note{{initialize the variable 'y' to silence this warning}} in test5() 30 x = y; // expected-warning{{variable 'y' is uninitialized when used here}} in test5() 35 int x; // expected-note{{initialize the variable 'x' to silence this warning}} in test6() 36 x += 2; // expected-warning{{variable 'x' is uninitialized when used here}} in test6() [all …]
|
/external/clang/test/SemaCXX/ |
D | bool-compare.cpp | 8 …if(b > true) {} // expected-warning {{comparison of true with expression of type 'bool' is alwa… in f() 9 if(b < true) {} // no warning in f() 10 if(b >= true) {} // no warning in f() 11 …if(b <= true) {} // expected-warning {{comparison of true with expression of type 'bool' is alwa… in f() 12 if(b == true) {} // no warning in f() 13 if(b != true) {} // no warning in f() 15 if(b > false) {} // no warning in f() 16 …if(b < false) {} // expected-warning {{comparison of false with expression of type 'bool' is alw… in f() 17 …if(b >= false) {} // expected-warning {{comparison of false with expression of type 'bool' is alw… in f() 18 if(b <= false) {} // no warning in f() [all …]
|
D | warn-empty-body.cpp | 11 …f (x); // expected-warning {{if statement has empty body}} expected-note{{put the semicolon on a s… in test1() 15 …RO_A); // expected-warning {{if statement has empty body}} expected-note{{put the semicolon on a s… in test1() 16 …== x); // expected-warning {{if statement has empty body}} expected-note{{put the semicolon on a s… in test1() 20 … i++); { // expected-warning{{for loop has empty body}} expected-note{{put the semicolon on a sepa… in test1() 25 …x; i++); // expected-warning{{for loop has empty body}} expected-note{{put the semicolon on a sepa… in test1() 32 …i++); // expected-warning{{for loop has empty body}} expected-note{{put the semicolon on a separat… in test1() 38 …); // expected-warning{{range-based for loop has empty body}} expected-note{{put the semicolon on … in test1() 42 …); // expected-warning{{range-based for loop has empty body}} expected-note{{put the semicolon on … in test1() 45 … == 0); // expected-warning{{while loop has empty body}} expected-note{{put the semicolon on a sep… in test1() 48 …= 0); { // expected-warning{{while loop has empty body}} expected-note{{put the semicolon on a sep… in test1() [all …]
|
D | uninitialized.cpp | 23 int a = a; // no-warning: used to signal intended lack of initialization. 24 int b = b + 1; // expected-warning {{variable 'b' is uninitialized when used within its own initial… 25 int c = (c + c); // expected-warning 2 {{variable 'c' is uninitialized when used within its own ini… 26 int e = static_cast<long>(e) + 1; // expected-warning {{variable 'e' is uninitialized when used wit… 27 int f = foo(f); // expected-warning {{variable 'f' is uninitialized when used within its own initia… 37 int l = k ? l : l; // expected-warning 2{{variable 'l' is uninitialized when used within its own i… 38 int m = 1 + (k ? m : m); // expected-warning 2{{variable 'm' is uninitialized when used within its… 39 int n = -n; // expected-warning {{variable 'n' is uninitialized when used within its own initializ… 40 int o = std::move(o); // expected-warning {{variable 'o' is uninitialized when used within its own … 41 const int p = std::move(p); // expected-warning {{variable 'p' is uninitialized when used within it… [all …]
|
D | warn-enum-compare.cpp | 42 …while (x == AnonAA); // expected-warning {{comparison of constant 'AnonAA' (42) with expression of… in test() 43 …while (AnonBB == y); // expected-warning {{comparison of constant 'AnonBB' (45) with expression of… in test() 68 …while (B1 == B2); // expected-warning {{comparison of two values with different enumeration types… in test() 69 …while (name1::B2 == name2::B3); // expected-warning {{comparison of two values with different enu… in test() 70 …while (z == name2::B2); // expected-warning {{comparison of two values with different enumeration… in test() 72 …while (((((B1)))) == B2); // expected-warning {{comparison of two values with different enumerati… in test() 73 …while (name1::B2 == (name2::B3)); // expected-warning {{comparison of two values with different e… in test() 74 …while (z == ((((name2::B2))))); // expected-warning {{comparison of two values with different enu… in test() 76 …while ((((B1))) == (((B2)))); // expected-warning {{comparison of two values with different enume… in test() 77 …while ((name1::B2) == (((name2::B3)))); // expected-warning {{comparison of two values with diffe… in test() [all …]
|
D | cxx98-compat.cpp | 6 using size_t = decltype(sizeof(0)); // expected-warning {{decltype}} expected-warning {{alias}} 16 template<typename ...T> // expected-warning {{variadic templates are incompatible with C++98}} 19 template<template<typename> class ...T> // expected-warning {{variadic templates are incompatible … 22 template<int ...I> // expected-warning {{variadic templates are incompatible with C++98}} 25 alignas(8) int with_alignas; // expected-warning {{'alignas' is incompatible with C++98}} 26 int with_attribute [[ ]]; // expected-warning {{C++11 attribute syntax is incompatible with C++98}} 29 (void)u8"str"; // expected-warning {{unicode literals are incompatible with C++98}} in Literals() 30 (void)u"str"; // expected-warning {{unicode literals are incompatible with C++98}} in Literals() 31 (void)U"str"; // expected-warning {{unicode literals are incompatible with C++98}} in Literals() 32 (void)u'x'; // expected-warning {{unicode literals are incompatible with C++98}} in Literals() [all …]
|
/external/clang/test/Preprocessor/ |
D | pragma_microsoft.c | 48 __pragma(warning(push)); \ 49 __pragma(warning(disable: 10000)); \ 51 __pragma(warning(pop)); \ 56 __pragma() // expected-warning{{unknown pragma ignored}} in f() 59 // If we ever actually *support* __pragma(warning(disable: x)), in f() 60 // this warning should go away. in f() 61 MACRO_WITH__PRAGMA // expected-warning {{lower precedence}} \ in f() 63 // CHECK: #pragma warning(push) in f() 64 // CHECK: #pragma warning(disable: 10000) in f() 66 // CHECK: #pragma warning(pop) in f() [all …]
|
/external/clang/test/PCH/ |
D | cxx-traits.h | 6 struct __is_pod { // expected-warning {{keyword '__is_pod' will be made available as an identifier … 11 struct __is_empty { // expected-warning {{keyword '__is_empty' will be made available as an identif… 20 struct __is_abstract {}; // expected-warning {{made available}} 21 struct __is_arithmetic {}; // expected-warning {{made available}} 22 struct __is_array {}; // expected-warning {{made available}} 23 struct __is_base_of {}; // expected-warning {{made available}} 24 struct __is_class {}; // expected-warning {{made available}} 25 struct __is_complete_type {}; // expected-warning {{made available}} 26 struct __is_compound {}; // expected-warning {{made available}} 27 struct __is_const {}; // expected-warning {{made available}} [all …]
|