Home | History | Annotate | Download | only in Analysis

Lines Matching defs:BOOL

4 // Test C++'s bool and C's _Bool.
6 // casts to bool. Arguably, however, these conversions are okay; the result
10 bool constant = 2; // no-warning
12 bool x = y; // no-warning
16 bool x = y; // no-warning
19 bool x = y; // no-warning
23 bool x = 0; // no-warning
35 // Test Objective-C's BOOL
37 typedef signed char BOOL;
40 BOOL constant = 2; // expected-warning {{Assignment of a non-Boolean value}}
42 BOOL x = y; // expected-warning {{Assignment of a non-Boolean value}}
47 BOOL x = y; // no-warning
51 BOOL x = y; // expected-warning{{Assignment of a non-Boolean value}}
55 BOOL x = y; // expected-warning {{Assignment of a non-Boolean value}}
58 BOOL x = y; // no-warning
62 BOOL x = 0; // no-warning