summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/crash50.C
blob: 711048de160777d0d20474339d6fb117f730cb54 (plain)
1
2
3
4
5
6
7
8
9
10
// Contributed by Dodji Seketeli <dodji@redhat.com>
// Origin PR c++/38636
// { dg-do compile }

struct A; // { dg-error "forward declaration of 'struct A'" }

A::A(

struct B; // { dg-error "expected '\\)' before ';' token|invalid use of incomplete type 'struct A'" }