aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/struct-size.c
blob: d82d730afad4e077abb1bed0f97fe7deab172d7e (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-do compile { target *-*-linux* } } */
/* { 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" } } */