Lines Matching refs:ecb
14 void test_conv_to_bool(ConvToBool ctb, ConvToInt cti, ExplicitConvToBool ecb) { in test_conv_to_bool() argument
17 if (ecb) { } in test_conv_to_bool()
20 for (; ecb; ) { } in test_conv_to_bool()
23 while (ecb) { } in test_conv_to_bool()
26 do { } while (ecb); in test_conv_to_bool()
30 if (!ecb) { } in test_conv_to_bool()
32 bool b1 = !ecb; in test_conv_to_bool()
33 if (ctb && ecb) { } in test_conv_to_bool()
34 bool b2 = ctb && ecb; in test_conv_to_bool()
35 if (ctb || ecb) { } in test_conv_to_bool()
36 bool b3 = ctb || ecb; in test_conv_to_bool()
45 void test_explicit_bool(ExplicitConvToBool ecb) { in test_explicit_bool() argument
46 bool b1(ecb); // okay in test_explicit_bool()
47 bool b2 = ecb; // expected-error{{no viable conversion from 'ExplicitConvToBool' to 'bool'}} in test_explicit_bool()
48 accepts_bool(ecb); // expected-error{{no matching function for call to}} in test_explicit_bool()