Lines Matching refs:y
9 void test_stdbool_initialization(int y) { in test_stdbool_initialization() argument
11 if (y < 0) { in test_stdbool_initialization()
12 bool x = y; // no-warning in test_stdbool_initialization()
15 if (y > 1) { in test_stdbool_initialization()
16 bool x = y; // no-warning in test_stdbool_initialization()
19 bool x = y; // no-warning in test_stdbool_initialization()
22 void test_stdbool_assignment(int y) { in test_stdbool_assignment() argument
24 if (y < 0) { in test_stdbool_assignment()
25 x = y; // no-warning in test_stdbool_assignment()
28 if (y > 1) { in test_stdbool_assignment()
29 x = y; // no-warning in test_stdbool_assignment()
32 x = y; // no-warning in test_stdbool_assignment()
39 void test_BOOL_initialization(int y) { in test_BOOL_initialization() argument
41 if (y < 0) { in test_BOOL_initialization()
42 BOOL x = y; // expected-warning {{Assignment of a non-Boolean value}} in test_BOOL_initialization()
45 if (y > 200 && y < 250) { in test_BOOL_initialization()
47 BOOL x = y; // no-warning in test_BOOL_initialization()
50 if (y >= 127 && y < 150) { in test_BOOL_initialization()
51 BOOL x = y; // expected-warning{{Assignment of a non-Boolean value}} in test_BOOL_initialization()
54 if (y > 1) { in test_BOOL_initialization()
55 BOOL x = y; // expected-warning {{Assignment of a non-Boolean value}} in test_BOOL_initialization()
58 BOOL x = y; // no-warning in test_BOOL_initialization()
61 void test_BOOL_assignment(int y) { in test_BOOL_assignment() argument
63 if (y < 0) { in test_BOOL_assignment()
64 x = y; // expected-warning {{Assignment of a non-Boolean value}} in test_BOOL_assignment()
67 if (y > 1) { in test_BOOL_assignment()
68 x = y; // expected-warning {{Assignment of a non-Boolean value}} in test_BOOL_assignment()
71 x = y; // no-warning in test_BOOL_assignment()
79 void test_Boolean_initialization(int y) { in test_Boolean_initialization() argument
81 if (y < 0) { in test_Boolean_initialization()
82 Boolean x = y; // expected-warning {{Assignment of a non-Boolean value}} in test_Boolean_initialization()
85 if (y > 1) { in test_Boolean_initialization()
86 Boolean x = y; // expected-warning {{Assignment of a non-Boolean value}} in test_Boolean_initialization()
89 Boolean x = y; // no-warning in test_Boolean_initialization()
92 void test_Boolean_assignment(int y) { in test_Boolean_assignment() argument
94 if (y < 0) { in test_Boolean_assignment()
95 x = y; // expected-warning {{Assignment of a non-Boolean value}} in test_Boolean_assignment()
98 if (y > 1) { in test_Boolean_assignment()
99 x = y; // expected-warning {{Assignment of a non-Boolean value}} in test_Boolean_assignment()
102 x = y; // no-warning in test_Boolean_assignment()