Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/constexpr-new20.C

raw
1 // PR c++/101663
2 // { dg-do compile { target c++20 } }
3
4 #include "construct_at.h"
5
6 template <typename _Tp> struct __box {
7 [[no_unique_address]] _Tp _M_value;
8 };
9
10 struct Empty {};
11
12 constexpr bool test() {
13 __box<Empty> a;
14 std::construct_at(&a._M_value);
15 return true;
16 }
17
18 static_assert(test());