================
@@ -84,6 +84,14 @@ void test_macro_expansion4() {
 #undef MY_NULL
 }
 
+template <typename T> struct pear {
+  T x;
+};
+void test_templated() {
+  pear<int*> p = { NULL };
----------------
tkoeppe wrote:

Done now. A key insight was that the test defines `NULL` as `0`, so in order 
for the new check to kick in, we're using `__null` as the to-be-diagnosed 
spelling.

https://github.com/llvm/llvm-project/pull/109169
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to