aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/struct-size.c
blob: 486aa40bff54ec18315d13bb67c351045e12c1e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-do compile { target *-*-linux* *-*-solaris* } } */
/* { dg-options "-Wno-pedantic" } */

struct S {
  int a;
  int b[];
} S;

struct S s = { 1, { 2, 3 } };

/* { dg-final { scan-assembler ".size\[\t \]*s, 12" } } */