1*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -triple x86_64-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -fobjc-gc -emit-llvm -o %t %s 2*f4a2713aSLionel Sambuc// 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*f4a2713aSLionel Sambuc@class NSObject; 4*f4a2713aSLionel Sambuc 5*f4a2713aSLionel Sambuc@interface Foo { 6*f4a2713aSLionel Sambuc@public 7*f4a2713aSLionel Sambuc __weak NSObject *nsobject; 8*f4a2713aSLionel Sambuc} 9*f4a2713aSLionel Sambuc@end 10*f4a2713aSLionel Sambuc 11*f4a2713aSLionel Sambuc@implementation Foo @end 12