[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Parser / goto.c
blob488db5757941a721150fb5ac3edab2316c5a675b
1 /* RUN: %clang_cc1 -fsyntax-only -verify %s
2 */
4 void test1(void) {
5 goto ; /* expected-error {{expected identifier}} */
9 void test2(void) {
10 l: /* expected-note {{previous definition is here}} */
13 __label__ l;
14 l: goto l;
18 __label__ l;
19 __label__ h; /* expected-error {{use of undeclared label 'h'}} */
20 l: goto l;
23 /* PR3429 */
25 l: /* expected-error {{redefinition of label 'l'}} */