Jason Merrill | 7c4577d | 2001-10-09 11:44:17 -0400 | [diff] [blame] | 1 | // Test that the parser doesn't go into an infinite loop from ignoring the |
| 2 | // PRE_PARSED_FUNCTION_DECL token. |
| 3 | |
Marek Polacek | f9c80eb | 2021-06-08 17:44:13 -0400 | [diff] [blame] | 4 | class 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 Vries | 7a95dfa | 2017-04-28 13:41:35 +0000 | [diff] [blame] | 6 | void* C::operator new(size_t) { return 0; } // { dg-error "" } |
| 7 | class D { D(int i): integer(i){}}; // { dg-error "" } |