Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/torture/pr54877.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
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 } |