summaryrefslogtreecommitdiff
path: root/clang/test/CodeGenObjC/return-objc-object.mm
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGenObjC/return-objc-object.mm')
-rw-r--r--clang/test/CodeGenObjC/return-objc-object.mm19
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 0000000..95cce23
--- /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()