summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/align-nest.c
blob: 2ff2952c70c6840677b16acaab9b92bb82758d8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
void foo(int n)
{
  typedef struct
  {
    int value;
  } myint;
  
  struct S
  {
    int i[n];
    unsigned int b:1;
    myint mi;
  } __attribute__ ((packed)) __attribute__ ((aligned (4)));

  struct S s[2];
  int k;
  
  for (k = 0; k < 2; k ++)
    s[k].mi.value = 0;
}

int main ()
{
  foo (2);
  return 0;
}