Merged with mainline at revision 128810.
[official-gcc.git] / gcc / testsuite / gcc.dg / pch / counter-2.c
blobd0475ba1de37d40864bf1824db028ddd5537e807
1 /* Copyright (C) 2007 Free Software Foundation
2 Contributed by Ollie Wild <aaw@google.com> */
4 /* { dg-options "-I. -Winvalid-pch" } */
6 #if __COUNTER__ != 0
7 #error __COUNTER__ != 0
8 #endif
10 #include "counter-2.h" /* { dg-warning "not used because `__COUNTER__' is invalid" } */
11 /* { dg-error "counter-2.h: No such file or directory" "" { target *-*-* } 10 } */
12 /* { dg-error "one or more PCH files were found, but they were invalid" "" { target *-*-* } 10 } */
14 int main(void)
16 return __COUNTER__;