summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr16566-2.c
blob: 2f7a10668a73da213518f8aab13b0334fd439cfe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* ICE with flexible arrays in non-lvalue structures.  Bug 16566
   (comment #5).  */
/* { dg-options "-Wno-psabi" { target { { i?86-*-* x86_64-*-* } && lp64 } } } */

struct A
{
    int i;
    int x[];
};

int foo(struct A a)
{ 
    return (a,a).x[0];
}