blob: eb585a89be45b3d14e05c12a6d9a060b45bf94d6 [file] [log] [blame]
// { dg-options "-Wunused -pedantic-errors" }
// { dg-do compile { target c++11 } }
// Test for syntax support of various attribute permutations.
int
[[noreturn]] // { dg-warning "ignored" }
one
[[gnu::unused]]
(void);
int one_third [[noreturn]] [[gnu::unused]] (void);
int [[gnu::unused]] one_half(); // { dg-warning "ignored" }
static
[[noreturn]] // { dg-warning "ignored" }
void two [[gnu::unused]] (void) {}
[[gnu::unused]]
int
five(void)
[[noreturn]] // { dg-warning "ignored" }
{}
[[noreturn]]
void
six (void)
;