1 // PR c++/28558
2 // { dg-options "" }
3 // { dg-do compile { target c++11 } }
4 
5 struct A
6 {
AA7   A(int) { }
8 };
9 
main()10 int main()
11 {
12     A a = (A [[gnu::unused]])0; // { dg-warning "attribute" }
13 }
14