From: Michael Beck Date: Thu, 20 Sep 2007 12:04:24 +0000 (+0000) Subject: extended and improved X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=b81f1b85ae5168229e47b2da7e9eec18f8264e74;p=libfirm extended and improved [r15900] --- diff --git a/ir/be/test/fehler81.c b/ir/be/test/fehler81.c index e490d3ac1..b267ee80c 100644 --- a/ir/be/test/fehler81.c +++ b/ir/be/test/fehler81.c @@ -1,11 +1,27 @@ -int main(int argc, char *aregv[]) { - switch (argc) { +/*$ -fno-inline */ +#include + +void test1(int a) { + switch (a) { case 1: - goto a; + goto label; default: + printf("default\n"); break; - a: - printf("Here\n"); + label: + printf("case 1\n"); } +} + +void test2(int a) { + switch (a) case 1: printf("case 1\n"); + printf("end\n"); +} + +int main() { + test1(1); + test1(2); + test2(1); + test2(2); return 0; }