1 /* Tests for labels before declarations and at ends of compound statements
2 * in combination with attributes. */
3 /* { dg-do compile } */
4 /* { dg-options "-std=c23 -Wall" } */
10 aa
: __attribute__((unused
)) int u
= 0; int v
= 0; /* { dg-warning "GNU-style attribute between label and declaration appertains to the label" } */
15 d
: __attribute__((unused
)) (void)0;
16 e
: __attribute__((unused
))
23 [[maybe_unused
]] aa
: int u
= 0; int v
= 0;
28 [[maybe_unused
]] d
: (void)0;
34 [[maybe_unused
]] a
: [[maybe_unused
]] b
: [[maybe_unused
]] int x
;
37 [[maybe_unused
]] c
: [[maybe_unused
]] d
: (void)0;