c++: P0847R7 (deducing this) - xobj lambdas. [PR102609]
[official-gcc.git] / gcc / testsuite / g++.dg / cpp2a / no_unique_address1.C
blob9cc8b94abb4016735734177a3d951e1236a45034
1 // { dg-do compile { target c++20 } }
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" }
7 struct A
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;