[Reland][Runtimes] Merge 'compile_commands.json' files from runtimes build (#116303)
[llvm-project.git] / clang / test / Preprocessor / _Pragma.c
blob669fdcd3cc0b3ea2caa7b4fee08f34c15854f1fb
1 // RUN: %clang_cc1 %s -verify -Wall
3 _Pragma ("GCC system_header") // expected-warning {{system_header ignored in main file}}
5 _Pragma("#define macro") // expected-warning {{unknown pragma ignored}}
7 _Pragma("") // expected-warning {{unknown pragma ignored}}
8 _Pragma("message(\"foo \\\\\\\\ bar\")") // expected-warning {{foo \\ bar}}
10 #ifdef macro
11 #error #define invalid
12 #endif
14 _Pragma(unroll 1 // expected-error{{_Pragma takes a parenthesized string literal}}
16 _Pragma(clang diagnostic push) // expected-error{{_Pragma takes a parenthesized string literal}}
18 _Pragma( // expected-error{{_Pragma takes a parenthesized string literal}}