- added outer function jump to example
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Thu, 18 Sep 2008 00:13:05 +0000 (00:13 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Thu, 18 Sep 2008 00:13:05 +0000 (00:13 +0000)
[r22064]

parsetest/gnu99/nested_function.c

index e08753a..24fbc07 100644 (file)
@@ -1,9 +1,15 @@
 int f(int a) {
+       __label__ end;
+
        int g(int k) {
+               if (k == 0)
+                       goto end;
                return k + a;
        }
 
        return g(1);
+end:
+       return 23;
 }
 
 int main(int argc, char *argv[]) {