comparison gcc/testsuite/gcc.dg/pr81192.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children 84e7813d76e9
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
1 /* { dg-options "-Os -fdump-tree-pre-details" } */
2
3 unsigned a;
4 int b, c;
5
6 static int
7 fn1 (int p1, int p2)
8 {
9 return p1 > 2147483647 - p2 ? p1 : p1 + p2;
10 }
11
12 void
13 fn2 (void)
14 {
15 int j;
16 a = 30;
17 for (; a;)
18 for (; c; b = fn1 (j, 1))
19 ;
20 }
21
22 /* { dg-final { scan-tree-dump-times "(?n)find_duplicates: <bb .*> duplicate of <bb .*>" 1 "pre" } } */