cmake/Source/Checks/cm_cxx_fallthrough.cxx

12 lines
145 B
C++
Raw Normal View History

2018-01-26 17:06:56 +01:00
int main(int argc, char* [])
2017-07-20 19:35:53 +02:00
{
int i = 3;
switch (argc) {
case 1:
i = 0;
[[fallthrough]];
default:
return i;
}
}