gcc/testsuite/gcc.dg/torture/pr81790.c
raw| 1 | /* { dg-do compile } */ |
| 2 | |
| 3 | typedef int a __attribute__ ((__vector_size__ (16))); |
| 4 | typedef struct |
| 5 | { |
| 6 | a b; |
| 7 | } c; |
| 8 | |
| 9 | int d, e; |
| 10 | |
| 11 | void foo (c *ptr); |
| 12 | |
| 13 | void bar () |
| 14 | { |
| 15 | double b = 1842.9028; |
| 16 | c g, h; |
| 17 | if (d) |
| 18 | b = 77.7998; |
| 19 | for (; e;) |
| 20 | { |
| 21 | g.b = g.b = g.b + g.b; |
| 22 | h.b = (a){b}; |
| 23 | h.b = h.b + h.b; |
| 24 | } |
| 25 | foo (&g); |
| 26 | foo (&h); |
| 27 | } |