diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2010-08-11 17:37:35 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2010-08-11 17:37:35 +0000 |
commit | d539d098a435e75e57792c167ec19e20843c2bc0 (patch) | |
tree | 3cade66eb397745b475d44a464cfe034e3c22119 /clang/test/CodeGenObjC/return-objc-object.mm | |
parent | a5f923b1a10858c50eeef24a5bf0c2695a94402f (diff) | |
download | bcm5719-llvm-d539d098a435e75e57792c167ec19e20843c2bc0.tar.gz bcm5719-llvm-d539d098a435e75e57792c167ec19e20843c2bc0.zip |
IRGen support for functions returning objc object
types. Fixes PR7865.
llvm-svn: 110832
Diffstat (limited to 'clang/test/CodeGenObjC/return-objc-object.mm')
-rw-r--r-- | clang/test/CodeGenObjC/return-objc-object.mm | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/clang/test/CodeGenObjC/return-objc-object.mm b/clang/test/CodeGenObjC/return-objc-object.mm new file mode 100644 index 00000000000..95cce23a868 --- /dev/null +++ b/clang/test/CodeGenObjC/return-objc-object.mm @@ -0,0 +1,19 @@ +// 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() |