Debian Codegraph @

gcc/testsuite/g++.dg/abi/no_unique_address3.C

raw
1 // { dg-do compile { target c++11 } }
2
3 struct A {
4 unsigned char i : 1;
5 };
6
7 struct B: A
8 {
9 unsigned char j : 7;
10 };
11
12 struct B2
13 {
14 [[no_unique_address]] A a;
15 unsigned char j : 7;
16 };
17
18 #define SA(X) static_assert ((X), #X)
19 SA (sizeof (B) == sizeof (B2));