Debian Codegraph @

gcc/testsuite/g++.dg/DRs/dr2543.C

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