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