aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/init-bad-4.c
blob: 3f03002908a91d76ec7e7eb80ff825407e258de8 (plain)
1
2
3
4
5
/* PR c/25875 */
/* Origin: Richard Guenther <rguenth@gcc.gnu.org> */
/* { dg-do compile } */

struct A { } a = (struct A) {{ (X)0 }};  /* { dg-error "no members|extra brace|near|undeclared|constant|compound" } */