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
c++: fix explicit/copy problem [PR109247]
[official-gcc.git]
/
gcc
/
testsuite
/
gdc.dg
/
torture
/
gdc115.d
blob
79693e8d32960a9e088b6caa055b40a52776e2a1
1
// https://bugzilla.gdcproject.org/show_bug.cgi?id=115
2
// { dg-do run }
3
// { dg-skip-if "needs gcc/config.d" { ! d_runtime } }
4
5
void
main
()
6
{
7
union
U
8
{
9
float
f
;
10
uint
i
;
11
}
12
float
a
=
123.0
;
13
const
l
=
U
(
a
);
14
15
assert
(
l
.
i
==
U
(
a
).
i
);
16
}