blob: 3a2d93b255633b1b5566a075c5915e622e294476 [file] [log] [blame]
// PR c++/15938
// { dg-do compile }
// { dg-options "" }
typedef union
{
struct { int i; };
struct { char c; };
} A;
A a = { 0 };
A b = {{ 0 }};
A c = {{{ 0 }}}; // { dg-error "braces" "" { target c++98_only } }
A d = {{{{ 0 }}}}; // { dg-error "braces" }