Mercurial > hg > CbC > CbC_gcc
comparison 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 |
comparison
equal
deleted
inserted
replaced
131:84e7813d76e9 | 145:1830386684a0 |
---|---|
1 // Test that the parser doesn't go into an infinite loop from ignoring the | 1 // Test that the parser doesn't go into an infinite loop from ignoring the |
2 // PRE_PARSED_FUNCTION_DECL token. | 2 // PRE_PARSED_FUNCTION_DECL token. |
3 | 3 |
4 class C { static void* operator new(size_t); }; // { dg-error "" } | 4 class C { static void* operator new(size_t); }; // { dg-error "24:declaration of .operator new. as non-function" } |
5 // { dg-error "expected|ISO C\\+\\+ forbids" "" { target *-*-* } .-1 } | |
5 void* C::operator new(size_t) { return 0; } // { dg-error "" } | 6 void* C::operator new(size_t) { return 0; } // { dg-error "" } |
6 class D { D(int i): integer(i){}}; // { dg-error "" } | 7 class D { D(int i): integer(i){}}; // { dg-error "" } |