teak-llvm/clang/test/CodeGenObjC/return-objc-object.mm
Fariborz Jahanian d539d098a4 IRGen support for functions returning objc object
types. Fixes PR7865.

llvm-svn: 110832
2010-08-11 17:37:35 +00:00

20 lines
300 B
Plaintext

// RUN: %clang_cc1 -triple x86_64 -emit-llvm -o - %s | FileCheck %s
@protocol P1 @end
@interface NSOperationQueue
{
char ch[64];
double d;
}
@end
NSOperationQueue &f();
NSOperationQueue<P1> &f1();
void call_once() {
f();
f1();
}
// CHECK: call %0* @_Z1fv()
// CHECK: call %0* @_Z2f1v()