xref: /minix3/external/bsd/llvm/dist/clang/test/Parser/asm.cpp (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1f4a2713aSLionel Sambuc // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
2f4a2713aSLionel Sambuc 
3f4a2713aSLionel Sambuc int foo1 asm ("bar1");
4f4a2713aSLionel Sambuc int foo2 asm (L"bar2"); // expected-error {{cannot use wide string literal in 'asm'}}
5f4a2713aSLionel Sambuc int foo3 asm (u8"bar3"); // expected-error {{cannot use unicode string literal in 'asm'}}
6f4a2713aSLionel Sambuc int foo4 asm (u"bar4"); // expected-error {{cannot use unicode string literal in 'asm'}}
7f4a2713aSLionel Sambuc int foo5 asm (U"bar5"); // expected-error {{cannot use unicode string literal in 'asm'}}
8f4a2713aSLionel Sambuc int foo6 asm ("bar6"_x); // expected-error {{string literal with user-defined suffix cannot be used here}}
9*0a6a1f1dSLionel Sambuc int foo6 asm ("" L"bar7"); // expected-error {{cannot use wide string literal in 'asm'}}
10