view gcc/testsuite/gcc.dg/cpp/pragma-pop_macro-1.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
line wrap: on
line source

/* 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