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

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900 (2017-10-27)
parents
children 1830386684a0
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
3
4 void bar (int);
5
6 void
7 foo ()
8 {
9 int index = 0;
10
11 for (index; index <= 10; index--)
12 /* Result of the following multiply will overflow
13 when converted to signed int. */
14 bar ((0xcafe + index) * 0xdead);
15 }