diff options
-rw-r--r-- | ConfigureChecks.cmake | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index f06e780..93010f4 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -205,22 +205,13 @@ int main(void) { check_c_source_compiles(" #define FALL_THROUGH __attribute__((fallthrough)) -enum direction_e { - UP = 0, - DOWN, -}; - int main(void) { - enum direction_e key = UP; - int i = 10; - int j = 0; + int i = 2; - switch (key) { - case UP: - i = 5; + switch (i) { + case 0: FALL_THROUGH; - case DOWN: - j = i * 2; + case 1: break; default: break; |