[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Sema / heinous-extensions-on.c
blob9a348d8dfd572db73313ae9908ccdf6bd88c823b
1 // RUN: %clang_cc1 %s -verify -fheinous-gnu-extensions
3 void foo(void) {
4 int a;
5 // PR3788
6 asm("nop" : : "m"((int)(a))); // expected-warning {{cast in an inline asm context requiring an lvalue}}
7 // PR3794
8 asm("nop" : "=r"((unsigned)a)); // expected-warning {{cast in an inline asm context requiring an lvalue}}