aboutsummaryrefslogtreecommitdiff
path: root/test/Preprocessor/_Pragma.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Preprocessor/_Pragma.c')
-rw-r--r--test/Preprocessor/_Pragma.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Preprocessor/_Pragma.c b/test/Preprocessor/_Pragma.c
index 120e754cb986..99231879ece0 100644
--- a/test/Preprocessor/_Pragma.c
+++ b/test/Preprocessor/_Pragma.c
@@ -12,4 +12,8 @@ _Pragma("message(\"foo \\\\\\\\ bar\")") // expected-warning {{foo \\ bar}}
#error #define invalid
#endif
+_Pragma(unroll 1 // expected-error{{_Pragma takes a parenthesized string literal}}
+
+_Pragma(clang diagnostic push) // expected-error{{_Pragma takes a parenthesized string literal}}
+
_Pragma( // expected-error{{_Pragma takes a parenthesized string literal}}