summaryrefslogtreecommitdiff
path: root/clang/test/CodeGenObjC/objc2-weak-ivar.m
blob: 78ccdf8876ccd668880654aff18ccc122e88035d (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
// RUN: %clang_cc1 -triple x86_64-apple-darwin9 -fobjc-fragile-abi -fobjc-gc -emit-llvm -o %t %s
// RUN: %clang_cc1 -x objective-c++ -triple x86_64-apple-darwin9 -fobjc-fragile-abi -fobjc-gc -emit-llvm -o %t %s
@class NSObject;

@interface Foo  {
@public
  __weak NSObject *nsobject;
}
@end

@implementation Foo @end