comparison gcc/testsuite/gcc.dg/tree-ssa/pr94598.c @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents
children
comparison
equal deleted inserted replaced
145:1830386684a0 152:2b5abeee2509
1 /* { dg-do compile } */
2 /* { dg-options "-O1" } */
3
4 struct a {
5 int b;
6 short c;
7 };
8 int d;
9 void e() {
10 struct a f[1];
11 f[d] = f[d];
12 }
13
14 struct S {
15 int a[30];
16 int c;
17 };
18
19 int get_int (void);
20
21 int foo(struct S p)
22 {
23 p.c = get_int ();
24 p.a[get_int()] = get_int()+1;
25 return p.c;
26 }