gcc/testsuite/gcc.c-torture/compile/consec.c
raw| 1 | /* { dg-require-effective-target untyped_assembly } */ |
| 2 | /* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */ |
| 3 | /* { dg-additional-options "-std=gnu89" } */ |
| 4 | |
| 5 | int glob; |
| 6 | |
| 7 | conseq (a, b, c, d) |
| 8 | int *a, *b; |
| 9 | { |
| 10 | a[2] = d; |
| 11 | a[1] = c; |
| 12 | sequence (a, b, c, d); |
| 13 | sequence (d, c, b, a); |
| 14 | b[0] = 0; |
| 15 | b[1] = 123; |
| 16 | a[0] = 321; |
| 17 | a[1] = 0; |
| 18 | sequence (111, 0, 0, 222, 0, 333); |
| 19 | ((int *)glob)[2] = c; |
| 20 | ((int *)glob)[3] = d; |
| 21 | } |