Mercurial > hg > CbC > CbC_gcc
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 |
rev | line source |
---|---|
111 | 1 /* { dg-do compile } */ |
2 /* { dg-options "-O2" } */ | |
3 /* { dg-require-effective-target alloca } */ | |
4 | |
5 int | |
6 zzz (char *s1, char *s2, int len, int *q) | |
7 { | |
8 int z = 5; | |
9 unsigned int i, b; | |
10 struct s { char a[z]; }; | |
11 struct s x; | |
12 | |
13 extern int foo (int, ...) __attribute__((pure)); | |
14 | |
15 for (i = 0; i < len; i++) | |
16 s1[i] = s2[i]; | |
17 | |
18 b = z & 0x3; | |
19 | |
20 len += (b == 0 ? 0 : 1) + z; | |
21 | |
22 *q = len; | |
23 return foo (z, x, x); | |
24 } |