2011-07-06 08:26:06 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -fobjc-arc -fobjc-arc-cxxlib=libc++ -fobjc-nonfragile-abi -fobjc-runtime-has-weak -verify %s
|
2011-06-16 07:02:42 +08:00
|
|
|
|
|
|
|
@interface A @end
|
|
|
|
|
|
|
|
void f(__strong id &sir, __weak id &wir, __autoreleasing id &air,
|
|
|
|
__unsafe_unretained id &uir) {
|
|
|
|
__strong id *sip = std::addressof(sir);
|
|
|
|
__weak id *wip = std::addressof(wir);
|
|
|
|
__autoreleasing id *aip = std::addressof(air);
|
|
|
|
__unsafe_unretained id *uip = std::addressof(uir);
|
|
|
|
}
|