[clang] [clang] do not abort on u8 string in inline asm (PR #177096)

via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 21 03:32:02 PST 2026


================
@@ -0,0 +1,7 @@
+// RUN: not %clang_cc1 -fsyntax-only -verify %s
+
+void foo() {
+  asm("" ::: (u8""}));
----------------
Sirraide wrote:

> Also, what happens if someone writes e.g. `asm(u"")`? Do we diagnose that as well?

Actually, it seems that this is already diagnosed, so we should already have tests for that

https://github.com/llvm/llvm-project/pull/177096


More information about the cfe-commits mailing list