2009-07-17 Richard Guenther <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / excess-precision-4.c
blob04e88a375ed9923e87a137acfb049a8432c9e835
1 /* Excess precision tests. Test diagnostics for excess precision of
2 constants. */
3 /* { dg-do compile } */
4 /* { dg-options "-mfpmath=387 -fexcess-precision=standard" } */
6 float f = 0.0f * 1e50f; /* { dg-warning "floating constant exceeds range of 'float'" } */
7 double d = 0.0 * 1e400; /* { dg-warning "floating constant exceeds range of 'double'" } */