gcc/testsuite/gcc.c-torture/execute/20040411-1.c
raw| 1 | void abort (void); |
| 2 | |
| 3 | int |
| 4 | sub1 (int i, int j) |
| 5 | { |
| 6 | typedef int c[i+2]; |
| 7 | int x[10], y[10]; |
| 8 | |
| 9 | if (j == 2) |
| 10 | { |
| 11 | __builtin_memcpy (x, y, 10 * sizeof (int)); |
| 12 | return sizeof (c); |
| 13 | } |
| 14 | else |
| 15 | return sizeof (c) * 3; |
| 16 | } |
| 17 | |
| 18 | int |
| 19 | main () |
| 20 | { |
| 21 | if (sub1 (20, 3) != 66 * sizeof (int)) |
| 22 | abort (); |
| 23 | |
| 24 | return 0; |
| 25 | } |