☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
constexpr-union1.C
☽
☼
gcc/testsuite/g++.dg/cpp1y/constexpr-union1.C
code
plain
raw
1
// PR c++/78897
2
// { dg-do compile { target c++14 } }
3
4
struct Optional {
5
constexpr Optional() : _dummy{} { _value = 1; }
6
union {
7
int _dummy;
8
int _value;
9
};
10
};
11
Optional opt{};