Changeset View
Changeset View
Standalone View
Standalone View
clang/test/CXX/expr/expr.prim/expr.prim.lambda/blocks-irgen.mm
// RUN: %clang_cc1 -std=c++11 -fblocks -emit-llvm -o - -triple x86_64-apple-darwin11.3 %s | FileCheck %s | // RUN: %clang_cc1 -std=c++11 -fblocks -emit-llvm -o - -triple x86_64-apple-darwin11.3 %s | FileCheck %s | ||||
namespace PR12746 { | namespace PR12746 { | ||||
// CHECK: define zeroext i1 @_ZN7PR127462f1EPi | // CHECK: define noundef zeroext i1 @_ZN7PR127462f1EPi | ||||
bool f1(int *x) { | bool f1(int *x) { | ||||
// CHECK: store i8* bitcast (i1 (i8*)* @___ZN7PR127462f1EPi_block_invoke to i8*) | // CHECK: store i8* bitcast (i1 (i8*)* @___ZN7PR127462f1EPi_block_invoke to i8*) | ||||
bool (^outer)() = ^ { | bool (^outer)() = ^ { | ||||
Context not available. | |||||
return outer(); | return outer(); | ||||
} | } | ||||
// CHECK: define internal zeroext i1 @___ZN7PR127462f1EPi_block_invoke | // CHECK: define internal noundef zeroext i1 @___ZN7PR127462f1EPi_block_invoke | ||||
// CHECK: call zeroext i1 @"_ZZZN7PR127462f1EPiEUb_ENK3$_0clEv" | // CHECK: call noundef zeroext i1 @"_ZZZN7PR127462f1EPiEUb_ENK3$_0clEv" | ||||
bool f2(int *x) { | bool f2(int *x) { | ||||
auto outer = [&]() -> bool { | auto outer = [&]() -> bool { | ||||
Context not available. |