From: Michael Beck Date: Sun, 26 Oct 2008 02:04:06 +0000 (+0000) Subject: - crashes, but should give an error X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=f94d2a44b227f0a7af9de64a86af241ba64be2f0;p=cparser - crashes, but should give an error [r23200] --- diff --git a/parsetest/shouldfail/weird_label.c b/parsetest/shouldfail/weird_label.c new file mode 100644 index 0000000..947da2a --- /dev/null +++ b/parsetest/shouldfail/weird_label.c @@ -0,0 +1,12 @@ +#include + +int main(int argc, char *argv) { + switch (argc) { + ({ weird: printf("It's forbidden to jump here\n"); argc; }); + case -1: + break; + default: + goto weird; + } + return 0; +}