summaryrefslogtreecommitdiffstats
path: root/Source/Checks/cm_cxx_gnu_fallthrough.cxx
blob: ebc15f4319d3c80acd1ff92c149c963056e41d5d (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;
      [[gnu::fallthrough]];
    default:
      return i;
  }
}