summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/undefined1.C
blob: 0ae4e88777c70c277e44d88234a1d57f34e1fb37 (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/8143
// { dg-do compile }

struct foo
{
    X x;                   // { dg-error "" }

    foo(X)              {} // { dg-error "" }
    foo(X y, int) : x() {} // { dg-error "" }
};