summaryrefslogtreecommitdiff
path: root/tests/parser/try-catch-in-switch-case-invalid.test
blob: 1d67e569c41c366ab6d6597df322a47be59f5fa7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Invalid Code

void main () {
	switch (42) {
	case 42:
		try {
			GLib.print ("42");
		 catch (GLib.Error e) {
			debug ("foo");
		}
		break;
	default:
		debug ("bar");
		break;
	}
}