From: Michael Beck Date: Sun, 31 Aug 2008 23:53:29 +0000 (+0000) Subject: add test for local label X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=69fead3484c9ad315f526554c0efb949c7c1c67e;hp=28a24ba15f436422c3c8e16341de47e9989184a4;p=cparser add test for local label [r21607] --- diff --git a/parsetest/gnu99/local_label.c b/parsetest/gnu99/local_label.c new file mode 100644 index 0000000..07ab369 --- /dev/null +++ b/parsetest/gnu99/local_label.c @@ -0,0 +1,23 @@ +int test(int a, int b) { + if (a) { + __label__ label; + if (b) + goto label; + b = 1; +label: + ++b; + } + if (a) { + __label__ label; + if (b) + goto label; + b = 1; +label: + ++b; + } + return b; +} + +int main(int argc, char *argv[]) { + return 0; +}