[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Preprocessor / _Pragma.c
blob99231879ece0604e2be789bec344a050a692292a
1 // RUN: %clang_cc1 %s -verify -Wall
3 _Pragma ("GCC system_header") // expected-warning {{system_header ignored in main file}}
5 // rdar://6880630
6 _Pragma("#define macro") // expected-warning {{unknown pragma ignored}}
8 _Pragma("") // expected-warning {{unknown pragma ignored}}
9 _Pragma("message(\"foo \\\\\\\\ bar\")") // expected-warning {{foo \\ bar}}
11 #ifdef macro
12 #error #define invalid
13 #endif
15 _Pragma(unroll 1 // expected-error{{_Pragma takes a parenthesized string literal}}
17 _Pragma(clang diagnostic push) // expected-error{{_Pragma takes a parenthesized string literal}}
19 _Pragma( // expected-error{{_Pragma takes a parenthesized string literal}}