[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Parser / asm.cpp
blobde156877ec470d023aa79297ac35340339071b56
1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
3 int foo1 asm ("bar1");
4 int foo2 asm (L"bar2"); // expected-error {{cannot use wide string literal in 'asm'}}
5 int foo3 asm (u8"bar3"); // expected-error {{cannot use unicode string literal in 'asm'}}
6 int foo4 asm (u"bar4"); // expected-error {{cannot use unicode string literal in 'asm'}}
7 int foo5 asm (U"bar5"); // expected-error {{cannot use unicode string literal in 'asm'}}
8 int foo6 asm ("bar6"_x); // expected-error {{string literal with user-defined suffix cannot be used here}}
9 int foo6 asm ("" L"bar7"); // expected-error {{cannot use wide string literal in 'asm'}}
11 void f() {
12 [[]] asm("");
13 [[gnu::deprecated]] asm(""); // expected-warning {{'deprecated' attribute ignored}}