PR tree-optimization/33562
[official-gcc.git] / gcc / testsuite / gcc.dg / cpp / counter-1.c
blob80d8b789271f25dec6ba983b23108fae43e2974d
1 /* Copyright (C) 2007 Free Software Foundation
2 Contributed by Ollie Wild <aaw@google.com> */
4 /* { dg-do preprocess } */
6 /* Tests __COUNTER__ macro is correctly expanded. */
8 #define counter __COUNTER__
10 #if __COUNTER__ != 0
11 #error __COUNTER__ != 0
12 #endif
14 #if counter != 1
15 #error counter != 1
16 #endif
18 #if __COUNTER__ != 2
19 #error __COUNTER__ != 2
20 #endif