// { dg-do compile { target c++11 } } // PR c++/35074 template struct A { void foo() const; } [[gnu::aligned(4)]]; // { dg-warning "ignored" } template void A::foo() const {}