aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/no_unique_address3.C
blob: 07108b8b71519fee39510056590220fbcfb50022 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// PR c++/90432
// { dg-do compile { target c++11 } }

struct empty {};

struct has_empty {
  [[no_unique_address]] empty brace_or_equal_initialized{};
};

struct has_value {
  int non_zero = 1;
};

struct pair : has_empty, has_value {};

pair a;