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