30 lines · c
1/* RUN: %clang_cc1 -fsyntax-only -verify %s2*/3 4void test1(void) { 5 goto ; /* expected-error {{expected identifier}} */6}7 8 9void test2(void) {10 l: /* expected-note {{previous definition is here}} */11 12 {13 __label__ l;14 l: goto l;15 }16 17 {18 __label__ l;19 __label__ h; /* expected-error {{use of undeclared label 'h'}} */20 l: goto l;21 }22 23 /* PR3429 */24 {25 l: /* expected-error {{redefinition of label 'l'}} */26 ;27 }28 29}30