Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.c-torture/execute/20031003-1.c @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 1830386684a0 |
children |
line wrap: on
line source
/* PR optimization/9325 */ #include <limits.h> extern void abort (void); int f1() { return (int)2147483648.0f; } int f2() { return (int)(float)(2147483647); } int main() { #if INT_MAX == 2147483647 if (f1() != 2147483647) abort (); if (f2() != 2147483647) abort (); #endif return 0; }