summaryrefslogtreecommitdiffstats
path: root/test/Preprocessor/_Pragma.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Preprocessor/_Pragma.c')
-rw-r--r--test/Preprocessor/_Pragma.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Preprocessor/_Pragma.c b/test/Preprocessor/_Pragma.c
new file mode 100644
index 0000000..9c0c97d
--- /dev/null
+++ b/test/Preprocessor/_Pragma.c
@@ -0,0 +1,10 @@
+// RUN: clang-cc %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
OpenPOWER on IntegriCloud