Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
constexpr-init20.C
blob: 1a6ed8d86dd4f31c75d7bf4c4a9964b1027fc777 [
file
] [
log
] [
blame
]
// PR c++/97328
// { dg-do compile { target c++20 } }
struct
vector
{
union
storage
{
int
t
;
constexpr
storage
()
{}
}
data
[
8
];
};
constexpr
auto
foo
()
{
vector i
;
return
i
;
}
auto
val
=
foo
();