blob: dff46b4af76d8a9a29e82190d22d1b7cea790ad7 [file] [log] [blame]
// { dg-options "-std=c++11 -Wunused -pedantic-errors" }
// { dg-do compile }
// 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)
;