]>
Commit | Line | Data |
---|---|---|
f8aea5e3 | 1 | /* Test C2x attribute syntax. Invalid use of fallthrough attribute |
6c80b1b5 | 2 | outside switch. */ |
f8aea5e3 JM |
3 | /* { dg-do compile } */ |
4 | /* { dg-options "-std=c2x -pedantic-errors -Wextra" } */ | |
5 | ||
6 | int | |
7 | f (int a) | |
8 | { | |
9 | [[fallthrough]]; /* { dg-error "invalid use of attribute 'fallthrough'" } */ | |
f8aea5e3 JM |
10 | return a; |
11 | } |