blob: 1deaa93f516894d4757fc8671d630dcbfedaf4f6 [file] [log] [blame]
Jason Merrill7c4577d2001-10-09 11:44:17 -04001// Test that the parser doesn't go into an infinite loop from ignoring the
2// PRE_PARSED_FUNCTION_DECL token.
3
Marek Polacekf9c80eb2021-06-08 17:44:13 -04004class C { static void* operator new(size_t); }; // { dg-error "37:.size_t. has not been declared" }
5// { dg-error ".operator new. takes type .size_t." "" { target *-*-* } .-1 }
Tom de Vries7a95dfa2017-04-28 13:41:35 +00006void* C::operator new(size_t) { return 0; } // { dg-error "" }
7class D { D(int i): integer(i){}}; // { dg-error "" }