1 /* Test syntax of hexadecimal floating point constants: at least one
2 digit needed before or after point. PR 41947. */
3 /* { dg-do compile } */
4 /* { dg-options "-std=iso9899:1999 -pedantic-errors" } */
16 double e0
= 0x
.p0
; /* { dg-error "no digits" } */
17 double e1
= 0x0.; /* { dg-error "require an exponent" } */
18 double e2
= 0x
.0; /* { dg-error "require an exponent" } */
19 double e3
= 0x0.0; /* { dg-error "require an exponent" } */
20 double e4
= 0x0.0p
; /* { dg-error "exponent has no digits" } */
21 double e5
= 0x0.0pf
; /* { dg-error "exponent has no digits" } */
22 double e6
= 0x0.0p
+; /* { dg-error "exponent has no digits" } */
23 double e7
= 0x0.0p
+f
; /* { dg-error "exponent has no digits" } */
24 double e8
= 0x0.0p
-; /* { dg-error "exponent has no digits" } */
25 double e9
= 0x0.0p
-f
; /* { dg-error "exponent has no digits" } */