summaryrefslogtreecommitdiffstats
path: root/research/goto.sh
blob: 4d21ff46a5945f88501b6728e333ac4981ba10d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
f()
{
	foo
	goto c
a:
	bar
	goto b
b:
	baz
c:
	qux
	goto a
}


f()
{
	__f__(){
		foo
		__f_c; return
		__f_a
	}
	__f_a(){
		bar
		__f_b; return
		__f_b
	}
	__f_b(){
		baz
		__f_c
	}
	__f_c(){
		qux
		__f_a; return
	}
	__f__
}