Lines Matching refs:ecb
20 void test_conv_to_bool(ConvToBool ctb, ConvToInt cti, ExplicitConvToBool ecb) { in test_conv_to_bool() argument
23 if (ecb) { } in test_conv_to_bool()
26 for (; ecb; ) { } in test_conv_to_bool()
29 while (ecb) { } in test_conv_to_bool()
32 do { } while (ecb); in test_conv_to_bool()
36 if (!ecb) { } in test_conv_to_bool()
38 bool b1 = !ecb; in test_conv_to_bool()
39 if (ctb && ecb) { } in test_conv_to_bool()
40 bool b2 = ctb && ecb; in test_conv_to_bool()
41 if (ctb || ecb) { } in test_conv_to_bool()
42 bool b3 = ctb || ecb; in test_conv_to_bool()
54 void test_explicit_bool(ExplicitConvToBool ecb) { in test_explicit_bool() argument
55 bool b1(ecb); // okay in test_explicit_bool()
56 bool b2 = ecb; // expected-error{{no viable conversion from 'ExplicitConvToBool' to 'bool'}} in test_explicit_bool()
57 accepts_bool(ecb); // expected-error{{no matching function for call to}} in test_explicit_bool()