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