Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/pr54669.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 /* PR tree-optimization/54669 */ |
2 /* Testcase by Zdenek Sojka <zsojka@seznam.cz> */ | |
3 | |
4 /* { dg-do compile } */ | |
5 /* { dg-options "-O2 -fexceptions -fnon-call-exceptions" } */ | |
145 | 6 /* { dg-require-effective-target exceptions } */ |
111 | 7 |
8 int a[10]; | |
9 | |
10 void | |
11 foo (void) | |
12 { | |
13 int x; | |
14 int i; | |
15 for (i = 0; i < 1;) | |
16 { | |
17 int b[3]; | |
18 for (i = 0; i < 1; i++) | |
19 b[i] = a[i]; | |
20 if (&x) | |
21 a[0] = b[0]; | |
22 } | |
23 } |