libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / c23-attr-fallthrough-4.c
blob1f425174d4eb82f03f26f9c363dfe58bdc78a476
1 /* Test C23 fallthrough attribute: duplicates (allowed after N2557). */
2 /* { dg-do compile } */
3 /* { dg-options "-std=c23 -pedantic-errors" } */
5 int
6 f (int a)
8 switch (a)
10 case 1:
11 a++;
12 [[fallthrough, __fallthrough__]]; /* { dg-warning "specified multiple times" } */
13 case 2:
14 a++;
15 [[fallthrough]] [[fallthrough]]; /* { dg-warning "specified multiple times" } */
16 case 3:
17 a++;
19 return a;