1// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fdebugger-support %s -emit-llvm -o - | FileCheck %s
2
3// rdar://problem/9416370
4void test0(id x) {
5  struct A { int w, x, y, z; };
6  struct A result = (struct A) [x makeStruct];
7  // CHECK:     define void @test0(
8  // CHECK:      [[X:%.*]] = alloca i8*, align 8
9  // CHECK-NEXT: [[RESULT:%.*]] = alloca [[A:%.*]], align 4
10  // CHECK-NEXT: store i8* {{%.*}}, i8** [[X]],
11  // CHECK-NEXT: [[T0:%.*]] = load i8** [[X]],
12  // CHECK-NEXT: [[T1:%.*]] = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_"
13  // CHECK-NEXT: [[T2:%.*]] = call { i64, i64 } bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to { i64, i64 } (i8*, i8*)*)(i8* [[T0]], i8* [[T1]])
14}
15