File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
regression/ansi-c/float_constant1 Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ STATIC_ASSERT(0x1.0p-95f == 2.524355e-29f);
7
7
// also with upper case X, P, F
8
8
STATIC_ASSERT (0X1.0P-95F == 2.524355e-29f );
9
9
10
+ // nothing before the dot
11
+ STATIC_ASSERT (0X.0p+1f == 0 );
12
+
10
13
#ifdef __GNUC__
11
14
_Complex c ;
12
15
#endif
Original file line number Diff line number Diff line change @@ -167,9 +167,9 @@ fraction {integer}
167
167
float1 {integer }" ." {fraction }? ({exponent })?
168
168
float2 " ." {fraction }({exponent })?
169
169
float3 {integer }{exponent }
170
- hexfloat1 " 0" [xX ]{hexdigit }+ " ." {hexdigit }+ [pP ][+- ]? {integer }
171
- hexfloat2 " 0" [xX ]{hexdigit }+ " ." [pP ][+- ]? {integer }
172
- hexfloat3 " 0" [xX ]{hexdigit }+ [pP ][+- ]? {integer }
170
+ hexfloat1 " 0" [xX ]{hexdigit }* " ." {hexdigit }+ [pP ][+- ]? {integer }
171
+ hexfloat2 " 0" [xX ]{hexdigit }* " ." [pP ][+- ]? {integer }
172
+ hexfloat3 " 0" [xX ]{hexdigit }* [pP ][+- ]? {integer }
173
173
float_suffix [fFlLiIjJ ]*
174
174
gcc_ext_float_suffix [wWqQ ]| [dD ][fFdDlL ]?
175
175
float {float1 }| {float2 }| {float3 }| {hexfloat1 }| {hexfloat2 }| {hexfloat3 }
You can’t perform that action at this time.
0 commit comments