repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[PR target/115123] Fix testsuite fallout from sinking heuristic change
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
dfp
/
c23-constants-1.c
blob
acd964073416bc5be4230571ddd24908f50ec267
1
/* Test that DFP constants are accepted in C23 mode. */
2
/* { dg-do compile } */
3
/* { dg-options "-std=c23 -pedantic-errors" } */
4
5
int
a
= (
int
)
1.1
DF
;
6
int
b
= (
int
)
2
.
df
;
7
int
c
= (
int
)
.33
DD
;
8
int
d
= (
int
)
2
e1dd
;
9
int
e
= (
int
)
.3
e2DL
;
10
int
f
= (
int
)
4.5
e3dl
;
11
int
g
= (
int
)
5
.
e0DF
;
12
int
h
= (
int
)
1e+2
df
;
13
int
i
= (
int
)
1000e-3
DL
;