8sa1-gcc/gcc/testsuite/gcc.dg/c99-hexfloat-1.c
Joseph Myers 3319c1b887 c90-hexfloat-1.c, [...]: New tests.
* gcc.dg/c90-hexfloat-1.c, gcc.dg/c90-hexfloat-2.c,
	gcc.dg/c99-hexfloat-1.c, gcc.dg/c99-hexfloat-2.c: New tests.

From-SVN: r35074
2000-07-17 02:27:13 -06:00

7 lines
281 B
C

/* Test for hex floating point constants: in C99 only. Compiler test. */
/* Origin: Joseph Myers <jsm28@cam.ac.uk> */
/* { dg-do compile } */
/* { dg-options "-std=iso9899:1999 -pedantic-errors" } */
double d = 0x1.2p2; /* { dg-bogus "radix 16" "bogus C99 hex float error" } */