diff options
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/execute/pushpop_macro.c')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/pushpop_macro.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/execute/pushpop_macro.c b/gcc/testsuite/gcc.c-torture/execute/pushpop_macro.c new file mode 100644 index 000000000..08a822043 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/pushpop_macro.c @@ -0,0 +1,15 @@ +extern void abort (); + +#define _ 2 +#pragma push_macro("_") +#undef _ +#define _ 1 +#pragma pop_macro("_") + +int main () +{ + if (_ != 2) + abort (); + return 0; +} + |