summaryrefslogtreecommitdiff
path: root/clang/test/Preprocessor/_Pragma.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Preprocessor/_Pragma.c')
-rw-r--r--clang/test/Preprocessor/_Pragma.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/_Pragma.c b/clang/test/Preprocessor/_Pragma.c
new file mode 100644
index 0000000..0a83b14
--- /dev/null
+++ b/clang/test/Preprocessor/_Pragma.c
@@ -0,0 +1,10 @@
+// RUN: %clang_cc1 %s -verify -Wall
+
+_Pragma ("GCC system_header") // expected-warning {{system_header ignored in main file}}
+
+// rdar://6880630
+_Pragma("#define macro") // expected-warning {{unknown pragma ignored}}
+
+#ifdef macro
+#error #define invalid
+#endif