From 69fead3484c9ad315f526554c0efb949c7c1c67e Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Sun, 31 Aug 2008 23:53:29 +0000 Subject: [PATCH] add test for local label [r21607] --- parsetest/gnu99/local_label.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 parsetest/gnu99/local_label.c 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; +} -- 2.20.1