[clang] [Clang] Fix assertion failure when passing wide string literal to __builtin_nanf (PR #205452)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 24 08:08:33 PDT 2026
================
@@ -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:
Can you also add coverage for other string literal formats and other nan spellings?
https://github.com/llvm/llvm-project/pull/205452
More information about the cfe-commits
mailing list