aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/consec.c
blob: b8c376d707696a9c3cd3a842f144fc134acb359f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* { dg-require-effective-target untyped_assembly } */
/* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */

int glob;

conseq (a, b, c, d)
     int *a, *b;
{
  a[2] = d;
  a[1] = c;
  sequence (a, b, c, d);
  sequence (d, c, b, a);
  b[0] = 0;
  b[1] = 123;
  a[0] = 321;
  a[1] = 0;
  sequence (111, 0, 0, 222, 0, 333);
  ((int *)glob)[2] = c;
  ((int *)glob)[3] = d;
}