1 // PR c/7652 2 // { dg-do compile } 3 // { dg-options "-std=c++17 -Wextra -Wall -Wpedantic" } 4 5 // Check that we accept attribute [[fallthrough]]. 6 7 extern void bar (int); 8 9 void f(int i)10f (int i) 11 { 12 switch (i) 13 { 14 case 1: 15 bar (1); 16 [[fallthrough]]; 17 case 2: 18 bar (2); 19 } 20 } 21