unwind: use the shared success_fail_return() function
[smatch.git] / validation / label-scope1.c
blobf2b1ae9b158ad95095eff091e2a1d98f60db1f38
1 static void ok_top(void)
3 __label__ l;
4 l:
5 goto l;
8 static void ko_undecl(void)
10 __label__ l;
11 goto l; // KO: undeclared
14 static void ok_local(void)
18 __label__ l;
20 goto l;
22 goto l;
25 static void ko_scope(void)
28 __label__ l;
30 goto l;
32 goto l; // KO: undeclared
36 * check-name: label-scope1
38 * check-error-start
39 label-scope1.c:11:9: error: label 'l' was not declared
40 label-scope1.c:32:1: error: label 'l' was not declared
41 * check-error-end