summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/_Pragma5.c
blob: 141d56b9a755829124f01bd59dace7546541f073 (plain)
1
2
3
4
5
6
7
8
9
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;" } } */