summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/ctor8.C
blob: e43ce4023a4ac3e44facf493324ecf9809f97a2a (plain)
1
2
3
4
5
6
7
8
9
//PR c++/28505

struct A
{
    A : ();     // { dg-error "primary-expression|incomplete type" }
    A : (int);  // { dg-error "primary-expression|incomplete type|'int'" }
};

A a = (A){0};   // { dg-error "too many initializers|compound-literals" }