Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/no_unique_address1.C

raw
1 // { dg-do compile { target c++20 } }
2
3 [[no_unique_address]] struct B { }; // { dg-warning "attribute" }
4 [[no_unique_address]] int i; // { dg-warning "attribute" }
5 [[no_unique_address]] void f(); // { dg-warning "attribute" }
6
7 struct A
8 {
9 [[no_unique_address]] B b;
10 [[no_unique_address]] void f(); // { dg-warning "attribute" }
11 [[no_unique_address]] static B c; // { dg-warning "attribute" }
12 int i;
13 };