Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/other/pr39060.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
// PR c++/39060 // { dg-do compile } struct A { A(void* i=); // { dg-error "with|specification|primary-expression" } A(void* i=); // { dg-error "overloaded|primary-expression" } A(void* i=); // { dg-error "overloaded|primary-expression" } void operator+ (void* i=); // { dg-error "arguments" } virtual void foo1(=); // { dg-error "identifier|primary-expression" } void foo2(=); // { dg-error "identifier|primary-expression" } void foo3(=); // { dg-error "identifier|primary-expression" } void foo4(=); // { dg-error "identifier|primary-expression" } void foo5(=); // { dg-error "identifier|primary-expression" } }; A::A (void* i=) {} // { dg-error "primary-expression|argument" }