annotate gcc/testsuite/gcc.dg/pr51990.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* { dg-do compile } */
kono
parents:
diff changeset
2 /* { dg-options "-O2" } */
kono
parents:
diff changeset
3 /* { dg-require-effective-target alloca } */
kono
parents:
diff changeset
4
kono
parents:
diff changeset
5 int
kono
parents:
diff changeset
6 zzz (char *s1, char *s2, int len, int *q)
kono
parents:
diff changeset
7 {
kono
parents:
diff changeset
8 int z = 5;
kono
parents:
diff changeset
9 unsigned int i, b;
kono
parents:
diff changeset
10 struct s { char a[z]; };
kono
parents:
diff changeset
11 struct s x;
kono
parents:
diff changeset
12
kono
parents:
diff changeset
13 extern int foo (int, ...) __attribute__((pure));
kono
parents:
diff changeset
14
kono
parents:
diff changeset
15 for (i = 0; i < len; i++)
kono
parents:
diff changeset
16 s1[i] = s2[i];
kono
parents:
diff changeset
17
kono
parents:
diff changeset
18 b = z & 0x3;
kono
parents:
diff changeset
19
kono
parents:
diff changeset
20 len += (b == 0 ? 0 : 1) + z;
kono
parents:
diff changeset
21
kono
parents:
diff changeset
22 *q = len;
kono
parents:
diff changeset
23 return foo (z, x, x);
kono
parents:
diff changeset
24 }