blob: 714d0af947bd227f6cecd594989bfa48b51d4743 [file] [log] [blame]
/* Test C2x attribute syntax. Invalid use of fallthrough attribute
outside switch. */
/* { dg-do compile } */
/* { dg-options "-std=c2x -pedantic-errors -Wextra" } */
int
f (int a)
{
[[fallthrough]]; /* { dg-error "invalid use of attribute 'fallthrough'" } */
return a;
}