1 // { dg-do compile { target c++11 } }
16 // A C++11 attribute at the beginning of the return statement is
17 // syntactically correct, appertains to the return statement (not to
18 // the label) but is currently ignored by this implementation.
19 good_ignored : [[gnu::unused]] // { dg-warning "attributes at the beginning of statement are ignored" }
26 // A GNU attribute after the label appertains to the label.
27 good: __attribute__((unused));
34 // The c++ attribute after the label appertains to the (empty)
36 bad: [[gnu::unused]]; // { dg-warning "attributes at the beginning of statement are ignored" }