summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/pragma-pop_macro-1.c
blob: c9a9048646ccaf6c54c977f7656fbb2673d798a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* PR preprocessor/35061 */
/* Do nothing if there is nothing on the macro stack to pop.  */

/* { dg-do preprocess } */

#define X  1
/* # pragma push_macro("X") */
# undef X
# pragma pop_macro("X")
#ifdef X
#error X is defined
#endif