Mercurial > hg > CbC > CbC_llvm
view clang/test/CodeGen/blocks-seq.c @ 266:00f31e85ec16 default tip
Added tag current for changeset 31d058e83c98
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 14 Oct 2023 10:13:55 +0900 |
parents | c4bab56944e8 |
children |
line wrap: on
line source
// RUN: %clang_cc1 -fblocks -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck %s // CHECK: [[Vi:%.+]] = alloca %struct.__block_byref_i, align 8 // CHECK: call i32 @rhs() // CHECK: [[V7:%.+]] = getelementptr inbounds %struct.__block_byref_i, ptr [[Vi]], i32 0, i32 1 // CHECK: load ptr, ptr [[V7]] // CHECK: call i32 @rhs() // CHECK: [[V11:%.+]] = getelementptr inbounds %struct.__block_byref_i, ptr [[Vi]], i32 0, i32 1 // CHECK: load ptr, ptr [[V11]] int rhs(void); void foo(void) { __block int i; ^{ (void)i; }; i = rhs(); i += rhs(); }