summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/block-inalloca.cpp
blob: b827dde7abdc7f11be96eac83273eff356b234dc (plain)
1
2
3
4
5
6
7
8
9
10
11
// RUN: %clang_cc1 -triple i686-unknown-windows-msvc -fblocks -emit-llvm -o - %s | FileCheck %s

struct S {
  S(const struct S &) {}
};

void (^b)(S) = ^(S) {};

// CHECK: [[DESCRIPTOR:%.*]] = getelementptr inbounds <{ i8*, %struct.S, [3 x i8] }>, <{ i8*, %struct.S, [3 x i8] }>* %0, i32 0, i32 0
// CHECK: load i8*, i8** [[DESCRIPTOR]]

OpenPOWER on IntegriCloud