comparison gcc/testsuite/gcc.dg/pr46499-1.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 middle-end/46499 */
2 /* { dg-do run } */
3 /* { dg-options "-O -fno-omit-frame-pointer -fno-tree-ccp -fno-tree-dominator-opts -finline-small-functions" } */
4
5 extern void abort (void);
6
7 int count = 0;
8
9 int
10 foo (void)
11 {
12 count++;
13 return 0;
14 }
15
16 int
17 bar (void)
18 {
19 count++;
20 return 0;
21 }
22
23 int
24 main ()
25 {
26 if ((foo () == 1) & (bar () == 1))
27 abort ();
28 if (count != 2)
29 abort ();
30 return 0;
31 }