blob: 22ba245b698910689e33e7e143b62f922385cea7 [file] [log] [blame]
/* Copyright (C) 2007 Free Software Foundation
Contributed by Ollie Wild <aaw@google.com> */
/* { dg-options "-I. -Winvalid-pch" } */
#if __COUNTER__ != 0
#error __COUNTER__ != 0
#endif
#include "counter-2.h" /* { dg-warning "not used because `__COUNTER__' is invalid" } */
/* { dg-error "counter-2.h: No such file or directory" "no such file" { target *-*-* } 10 } */
/* { dg-error "one or more PCH files were found, but they were invalid" "invalid files" { target *-*-* } 10 } */
int main(void)
{
return __COUNTER__;
}