Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/pr49069.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 /* PR target/49069 */ | |
2 /* { dg-do compile } */ | |
3 /* { dg-options "-Os -fno-tree-forwprop -Wno-div-by-zero" } */ | |
4 | |
5 int a; | |
6 const unsigned long long b[1] = { 1ULL }; | |
7 extern void bar (int); | |
8 | |
9 void | |
10 foo (void) | |
11 { | |
12 for (a = 0; a == 1; a = 2) | |
13 ; | |
14 bar (b[0] == (a == 0 ? a : a / 0)); | |
15 } |