diff --git a/tests/47_switch_return.c b/tests/47_switch_return.c new file mode 100644 index 0000000..cb2fc6d --- /dev/null +++ b/tests/47_switch_return.c @@ -0,0 +1,22 @@ +#include + +void fred(int x) +{ + switch (x) + { + case 1: printf("1\n"); return; + case 2: printf("2\n"); break; + case 3: printf("3\n"); return; + } + + printf("out\n"); +} + +int main() +{ + fred(1); + fred(2); + fred(3); + + return 0; +} \ No newline at end of file