1*67e74705SXin Li// RUN: %clang_cc1 -triple x86_64-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -fobjc-gc -emit-llvm -o %t %s 2*67e74705SXin Li// RUN: %clang_cc1 -x objective-c++ -triple x86_64-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -fobjc-gc -emit-llvm -o %t %s 3*67e74705SXin Li@class NSObject; 4*67e74705SXin Li 5*67e74705SXin Li@interface Foo { 6*67e74705SXin Li@public 7*67e74705SXin Li __weak NSObject *nsobject; 8*67e74705SXin Li} 9*67e74705SXin Li@end 10*67e74705SXin Li 11*67e74705SXin Li@implementation Foo @end 12