gcc/testsuite/gcc.dg/tree-ssa/pr94598.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O1" } */ |
| 3 | |
| 4 | struct a { |
| 5 | int b; |
| 6 | short c; |
| 7 | }; |
| 8 | int d; |
| 9 | void e() { |
| 10 | struct a f[1]; |
| 11 | f[d] = f[d]; |
| 12 | } |
| 13 | |
| 14 | struct S { |
| 15 | int a[30]; |
| 16 | int c; |
| 17 | }; |
| 18 | |
| 19 | int get_int (void); |
| 20 | |
| 21 | int foo(struct S p) |
| 22 | { |
| 23 | p.c = get_int (); |
| 24 | p.a[get_int()] = get_int()+1; |
| 25 | return p.c; |
| 26 | } |