aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/compound-literal-1.c
blob: 968bb450a7134ae7555acfd6441b9f3a3269bf82 (plain)
1
2
3
4
5
6
7
8
9
/* ICE incrementing compound literal: bug 28418 from Volker Reichelt
   <reichelt@gcc.gnu.org>.  */

struct A { int i; };

void foo()
{
    ((struct A) { 0 }).i += 1;
}