blob: 1fdaaf37a1b3d36741d161039b179ac240c24aff [file] [log] [blame]
Fariborz Jahanianfaa5bfc2010-11-30 23:07:14 +00001// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fblocks -emit-llvm -o - %s | FileCheck %s
2// pr8707
3
4// CHECK: @__block_global_0.test = internal global i32
5int (^block)(void) = ^ {
6 static int test=0;
7 return test;
8};
9// CHECK: @__block_global_1.test = internal global i32
10void (^block1)(void) = ^ {
11 static int test = 2;
12 return;
13};
14// CHECK: @__block_global_2.test = internal global i32
15int (^block2)(void) = ^ {
16 static int test = 5;
17 return test;
18};
19