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 > 1) { in test_BOOL_initialization()
46 BOOL x = y; // expected-warning {{Assignment of a non-Boolean value}} in test_BOOL_initialization()
49 BOOL x = y; // no-warning in test_BOOL_initialization()
52 void test_BOOL_assignment(int y) { in test_BOOL_assignment() argument
54 if (y < 0) { in test_BOOL_assignment()
55 x = y; // expected-warning {{Assignment of a non-Boolean value}} in test_BOOL_assignment()
58 if (y > 1) { in test_BOOL_assignment()
59 x = y; // expected-warning {{Assignment of a non-Boolean value}} in test_BOOL_assignment()
62 x = y; // no-warning in test_BOOL_assignment()
70 void test_Boolean_initialization(int y) { in test_Boolean_initialization() argument
72 if (y < 0) { in test_Boolean_initialization()
73 Boolean x = y; // expected-warning {{Assignment of a non-Boolean value}} in test_Boolean_initialization()
76 if (y > 1) { in test_Boolean_initialization()
77 Boolean x = y; // expected-warning {{Assignment of a non-Boolean value}} in test_Boolean_initialization()
80 Boolean x = y; // no-warning in test_Boolean_initialization()
83 void test_Boolean_assignment(int y) { in test_Boolean_assignment() argument
85 if (y < 0) { in test_Boolean_assignment()
86 x = y; // expected-warning {{Assignment of a non-Boolean value}} in test_Boolean_assignment()
89 if (y > 1) { in test_Boolean_assignment()
90 x = y; // expected-warning {{Assignment of a non-Boolean value}} in test_Boolean_assignment()
93 x = y; // no-warning in test_Boolean_assignment()