Small ChangeLog tweak.
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / pr71083.c
blob6f80b0f831576ce573811ad91f38a8bb48e995ff
1 __extension__ typedef __UINT32_TYPE__ uint32_t;
3 struct lock_chain {
4 uint32_t irq_context: 2,
5 depth: 6,
6 base: 24;
7 };
9 __attribute__((noinline, noclone))
10 struct lock_chain * foo (struct lock_chain *chain)
12 int i;
13 for (i = 0; i < 100; i++)
15 chain[i+1].base = chain[i].base;
17 return chain;
20 struct lock_chain1 {
21 char x;
22 unsigned short base;
23 } __attribute__((packed));
25 __attribute__((noinline, noclone))
26 struct lock_chain1 * bar (struct lock_chain1 *chain)
28 int i;
29 for (i = 0; i < 100; i++)
31 chain[i+1].base = chain[i].base;
33 return chain;
36 struct lock_chain test [101];
37 struct lock_chain1 test1 [101];
39 int
40 main ()
42 foo (test);
43 bar (test1);
44 return 0;