c++: P0847R7 (deducing this) - xobj lambdas. [PR102609]
[official-gcc.git] / gcc / testsuite / g++.dg / cpp2a / constexpr-init19.C
blobd354c5ad609e296b0e6a352ad5490701a5f5a746
1 // PR c++/97328
2 // { dg-do compile { target c++20 } }
4 struct vector {
5   struct storage {
6     int t;
7     constexpr storage() {}
8   } data[8];
9 };
11 constexpr auto foo() {
12   vector i;
13   return i;
15 auto val = foo();