summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/_Pragma5.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/cpp/_Pragma5.c')
-rw-r--r--gcc/testsuite/gcc.dg/cpp/_Pragma5.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/cpp/_Pragma5.c b/gcc/testsuite/gcc.dg/cpp/_Pragma5.c
new file mode 100644
index 000000000..141d56b9a
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/cpp/_Pragma5.c
@@ -0,0 +1,10 @@
+/* { dg-do preprocess } */
+
+/* Based on Debian GNATS PR 8524. 17 Nov 2002. */
+
+#define ALPHA(A) alpha_ ## A
+#define BETA(B) beta_ ## B
+#define GAMMA(C) _Pragma("moose") ALPHA(C) BETA(C)
+GAMMA(baz);
+
+/* { dg-final { scan-file "_Pragma5.i" "alpha_baz beta_baz;" } } */