annotate gcc/testsuite/g++.dg/parse/saved1.C @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 // Test that the parser doesn't go into an infinite loop from ignoring the
kono
parents:
diff changeset
2 // PRE_PARSED_FUNCTION_DECL token.
kono
parents:
diff changeset
3
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 111
diff changeset
4 class C { static void* operator new(size_t); }; // { dg-error "24:declaration of .operator new. as non-function" }
1830386684a0 gcc-9.2.0
anatofuz
parents: 111
diff changeset
5 // { dg-error "expected|ISO C\\+\\+ forbids" "" { target *-*-* } .-1 }
111
kono
parents:
diff changeset
6 void* C::operator new(size_t) { return 0; } // { dg-error "" }
kono
parents:
diff changeset
7 class D { D(int i): integer(i){}}; // { dg-error "" }