Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/torture/pr54877.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
rev | line source |
---|---|
111 | 1 /* PR tree-optimization/54877 */ |
2 /* { dg-do run } */ | |
3 /* { dg-options "-ffast-math" } */ | |
4 | |
5 extern void abort (void); | |
6 | |
7 int | |
8 foo (void) | |
9 { | |
10 double d; | |
11 int i; | |
12 for (i = 0, d = 0; i < 64; i++) | |
13 d--; | |
14 return (int) d; | |
15 } | |
16 | |
17 int | |
18 main () | |
19 { | |
20 if (foo () != -64) | |
21 abort (); | |
22 return 0; | |
23 } |