aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/ctor9.C
blob: b80f7289253d4b4e9ab8e6867be7219b9ca93675 (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" } */
};