llvm-project/clang/test/CodeGenObjC/objc2-weak-ivar.m

12 lines
349 B
Objective-C

// RUN: %clang_cc1 -triple x86_64-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -fobjc-gc -emit-llvm -o %t %s
// RUN: %clang_cc1 -x objective-c++ -triple x86_64-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -fobjc-gc -emit-llvm -o %t %s
@class NSObject;
@interface Foo {
@public
__weak NSObject *nsobject;
}
@end
@implementation Foo @end