18 lines · c
1// RUN: %clang_cc1 -fblocks -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck %s2// CHECK: [[Vi:%.+]] = alloca %struct.__block_byref_i, align 83// CHECK: call i32 @rhs()4// CHECK: [[V7:%.+]] = getelementptr inbounds nuw %struct.__block_byref_i, ptr [[Vi]], i32 0, i32 15// CHECK: load ptr, ptr [[V7]]6// CHECK: call i32 @rhs()7// CHECK: [[V11:%.+]] = getelementptr inbounds nuw %struct.__block_byref_i, ptr [[Vi]], i32 0, i32 18// CHECK: load ptr, ptr [[V11]]9 10int rhs(void);11 12void foo(void) {13 __block int i;14 ^{ (void)i; };15 i = rhs();16 i += rhs();17}18