================
@@ -234,3 +234,34 @@ namespace Template {
template void h<d>();
}
#endif // __cplusplus < 201703L
+
+namespace implicit_constructor_bool {
+
+struct B {
+ bool a;
+ B(bool V) : a(V) {} // expected-note {{'B' declared here}}
+};
+
+void test(const B& b);
+
+void test0(B* b) {
+ test(b); // expected-warning {{implicit conversion from 'B *' to 'const B'
calls}}
----------------
Ralender wrote:
Done
https://github.com/llvm/llvm-project/pull/143990
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits