summaryrefslogtreecommitdiffstats
path: root/Source/Checks/cm_cxx_attribute_fallthrough.cxx
blob: 50605b70a539a214e6980cf23a05d7c491fb7ef8 (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;
      __attribute__((fallthrough));
    default:
      return i;
  }
}