gcc/testsuite/gcc.c-torture/compile/blk.c
raw| 1 | /* { dg-additional-options "-std=gnu89" } */ |
| 2 | |
| 3 | struct |
| 4 | { |
| 5 | double a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t; |
| 6 | } foo, bar; |
| 7 | |
| 8 | foobar () |
| 9 | { |
| 10 | foo = bar; |
| 11 | xxx (&foo, &bar); |
| 12 | } |
| 13 | |
| 14 | main () |
| 15 | { |
| 16 | bar.g = 1.0; |
| 17 | foo.g = 2.0; |
| 18 | foobar (); |
| 19 | printf ("%lf\n", foo.g); |
| 20 | } |