Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/gen-attrs-28.C

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