================
@@ -0,0 +1,3 @@
+// RUN: %clang_cc1 -fsyntax-only -verify %s
+
+char hello = __builtin_nanf(L""); // expected-error {{incompatible pointer 
types passing 'int[1]' to parameter of type 'const char *'}}
----------------
AaronBallman wrote:

Because this relates to constant expression handling, I think we should add a 
`RUN` line with `-fexperimental-new-constant-interpreter` to test both of the 
constant engines. (You may have to update the test to use `constexpr` to ensure 
we're testing constant expression behavior in both C23 and C++.)

https://github.com/llvm/llvm-project/pull/205452
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to