blob: f0f8c4856d81179a449fde2ca043119521d375d2 [file] [log] [blame]
Daniel Dunbard7d5f022009-03-24 02:24:46 +00001// RUN: clang-cc %s -verify -fblocks -fsyntax-only
Steve Naroffd8eb4562009-03-13 16:03:38 +00002
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}