1 // { dg-options "-Wunused -pedantic-errors" }
2 // { dg-do compile { target c++11 } }
3 // Test for syntax support of various attribute permutations.
6 [[noreturn]] // { dg-warning "ignored" }
11 int one_third [[noreturn]] [[gnu::unused]] (void);
13 int [[gnu::unused]] one_half(); // { dg-warning "ignored" }
16 [[noreturn]] // { dg-warning "ignored" }
17 void two [[gnu::unused]] (void) {}
24 [[noreturn]] // { dg-warning "ignored" }