blob: 15e6f61cede391d9af601dc09338e287847f2a8b [file] [log] [blame]
Steve Naroffd8eb4562009-03-13 16:03:38 +00001// RUN: clang %s -verify -fblocks -fsyntax-only
2
3int a() {
4 A:if (1) xx();
5 return ^{A:return 1;}();
6}
7int b() {
8 A: return ^{int a; A:return 1;}();
9}
10
11int d() {
12 A: return ^{int a; A: a = ^{int a; A:return 1;}() + ^{int b; A:return 2;}(); return a; }();
13}
14
15int c() {
16 goto A; return ^{ A:return 1;}(); // expected-error {{use of undeclared label 'A'}}
17}