Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/pr68317.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children | 1830386684a0 |
rev | line source |
---|---|
111 | 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 } |