comparison gcc/testsuite/gcc.c-torture/execute/20021120-2.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 int g1, g2;
2
3 void foo (int x)
4 {
5 int y;
6
7 if (x)
8 y = 793;
9 else
10 y = 793;
11 g1 = 7930 / y;
12 g2 = 7930 / x;
13 }
14
15 int main ()
16 {
17 foo (793);
18 if (g1 != 10 || g2 != 10)
19 abort ();
20 exit (0);
21 }