Debian Codegraph @

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

raw
1 // PR c++/120502
2 // { dg-do compile { target c++20 } }
3 // { dg-additional-options -O }
4
5 struct non_trivial_if {
6 constexpr non_trivial_if() {}
7 };
8 struct allocator : non_trivial_if {};
9 struct padding {};
10 struct __short {
11 [[no_unique_address]] padding p;
12 };
13 struct basic_string {
14 union {
15 __short s;
16 int l;
17 };
18 [[no_unique_address]] allocator a;
19 constexpr basic_string() {}
20 ~basic_string() {}
21 };
22 struct time_zone {
23 basic_string __abbrev;
24 long __offset;
25 };
26 time_zone convert_to_time_zone() { return {}; }