Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/pr54919.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* PR tree-optimization/54919 */ /* Testcase by Zdenek Sojka <zsojka@seznam.cz> */ /* { dg-do run } */ /* { dg-options "-O3 -ffast-math -funroll-loops -fvariable-expansion-in-unroller" } */ int a[10]; extern void abort(void) __attribute__((noreturn)); int __attribute__((__noinline__, __noclone__)) foo (void) { double d; int i; for (i = 0, d = 0; i < 64; i++) d--; return (int) d; } int main (void) { if (foo () != -64) abort (); return 0; }