summaryrefslogtreecommitdiffstats
path: root/Source/Checks/cm_cxx_fallthrough.cxx
blob: 2825bed1e9064843c5f2a8e7779eb49a28af0ece (plain)
1
2
3
4
5
6
7
8
9
10
11
int main(int argc, char* [])
{
  int i = 3;
  switch (argc) {
    case 1:
      i = 0;
      [[fallthrough]];
    default:
      return i;
  }
}