summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/torture/pushpop_macro.C
blob: 98065e6ee79e0dc84398516a16fb73a4d96acaac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* Do the preprocessor push_macro/pop_macro test.  */

/* { dg-do run } */

extern "C" void abort ();

#define _ 2
#pragma push_macro("_")
#undef _
#define _ 1
#pragma pop_macro("_")

int main ()
{
  if (_ != 2)
    abort ();
  return 0;
}