diff options
Diffstat (limited to 'test/CodeGenObjC/return-objc-object.mm')
-rw-r--r-- | test/CodeGenObjC/return-objc-object.mm | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/CodeGenObjC/return-objc-object.mm b/test/CodeGenObjC/return-objc-object.mm new file mode 100644 index 0000000000000..95cce23a86825 --- /dev/null +++ b/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() |