2010-08-12 01:37:35 +08:00
|
|
|
// 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();
|
|
|
|
}
|
2020-05-19 02:29:11 +08:00
|
|
|
// CHECK: call nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %0* @_Z1fv()
|
|
|
|
// CHECK: call nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %0* @_Z2f1v()
|