[clang] [clang] do not abort on u8 string in inline asm (PR #177096)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 22 04:39:27 PST 2026
================
@@ -43,6 +43,10 @@ void test3(void) {
int x;
asm(L"foo" : "=r"(x)); // expected-error {{wide string}}
asm("foo" : L"=r"(x)); // expected-error {{wide string}}
+
+ // GH177056
+ asm("" ::: (u8"")); // expected-error {{expected string literal in 'asm'}} expected-error {{expected ')'}}
----------------
Sirraide wrote:
Also, this test doesn't actually test for the error that should now be emitted, make sure to test for that error message specifically; if that error message doesn't appear, then you need a different test.
https://github.com/llvm/llvm-project/pull/177096
More information about the cfe-commits
mailing list