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