☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
DRs
/
dr2543.C
☽
☼
gcc/testsuite/g++.dg/DRs/dr2543.C
code
plain
raw
1
// CWG 2543
2
// { dg-do compile { target c++20 } }
3
4
float f;
5
constinit int * pi = (int*) &f; // { dg-error "constant" } reinterpret_cast, not constant-initialized