summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/ctor9.C
blob: 8b2cbf7a643d415bbd944c267924952cb2b418c2 (plain)
1
2
3
4
5
6
7
/* PR c++/37647 */
/* { dg-do compile } */

struct A
{
  A() { void A(); } /* { dg-error "return type specification for constructor invalid|non-class scope" } */
};