aboutsummaryrefslogtreecommitdiff
path: root/test/Preprocessor/macro_arg_directive.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Preprocessor/macro_arg_directive.c')
-rw-r--r--test/Preprocessor/macro_arg_directive.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Preprocessor/macro_arg_directive.c b/test/Preprocessor/macro_arg_directive.c
index 5bc2236f0c45..21d1b20acf66 100644
--- a/test/Preprocessor/macro_arg_directive.c
+++ b/test/Preprocessor/macro_arg_directive.c
@@ -7,6 +7,11 @@ a(n =
a);
_Static_assert(n == 5, "");
+#define M(A)
+M(
+#pragma pack(pop) // expected-error {{embedding a #pragma directive within macro arguments is not supported}}
+)
+
// header1.h
void fail(const char *);
#define MUNCH(...) \