1/* RUN: %clang_cc1 -fsyntax-only -verify %s 2*/ 3 4void test1() { 5 goto ; /* expected-error {{expected identifier}} */ 6} 7 8 9void test2() { 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 & rdar://8287027 24 */ 25 { 26 l: /* expected-error {{redefinition of label 'l'}} */ 27 ; 28 } 29 30} 31