blob: 9f64dfea476ed210529d18bd15307ddd5b9eb694 [file] [log] [blame]
Richard Smith99831e42012-03-06 03:21:47 +00001// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
2
3int foo1 asm ("bar1");
4int foo2 asm (L"bar2"); // expected-error {{cannot use wide string literal in 'asm'}}
5int foo3 asm (u8"bar3"); // expected-error {{cannot use unicode string literal in 'asm'}}
6int foo4 asm (u"bar4"); // expected-error {{cannot use unicode string literal in 'asm'}}
7int foo5 asm (U"bar5"); // expected-error {{cannot use unicode string literal in 'asm'}}
8int foo6 asm ("bar6"_x); // expected-error {{string literal with user-defined suffix cannot be used here}}
Stephen Hines0e2c34f2015-03-23 12:09:02 -07009int foo6 asm ("" L"bar7"); // expected-error {{cannot use wide string literal in 'asm'}}