xref: /llvm-project/clang/test/CodeGenObjC/return-objc-object.mm (revision 9466b49171dc4b21f56a48594fc82b1e52f5358a)
1// RUN: %clang_cc1 -triple x86_64 -emit-llvm -o - %s | FileCheck %s
2
3@protocol P1 @end
4@interface NSOperationQueue
5{
6  char ch[64];
7  double d;
8}
9@end
10
11NSOperationQueue &f();
12NSOperationQueue<P1> &f1();
13
14void call_once() {
15  f();
16  f1();
17}
18// CHECK: call noundef nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) ptr @_Z1fv()
19// CHECK: call noundef nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) ptr @_Z2f1v()
20