summaryrefslogtreecommitdiff
path: root/clang/test/CodeGenObjC/return-objc-object.mm
blob: 95cce23a8682589bfe1bb2eb363ad15e42101ae5 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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()