diff options
-rw-r--r-- | test/CodeGenObjC/forward-class-impl-metadata.m | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/test/CodeGenObjC/forward-class-impl-metadata.m b/test/CodeGenObjC/forward-class-impl-metadata.m index b3976d6458..b8ce10aaa5 100644 --- a/test/CodeGenObjC/forward-class-impl-metadata.m +++ b/test/CodeGenObjC/forward-class-impl-metadata.m @@ -1,4 +1,4 @@ -// RUN: clang-cc -triple x86_64-unknown-unknown -emit-llvm -o %t %s +// RUN: clang-cc -triple x86_64-apple-darwin10 -emit-llvm -o %t %s @interface BASE { @private @@ -22,3 +22,20 @@ @implementation PVR @end + +// Reopen of an interface after use. + +@interface A { +@public + int x; +} +@property int p0; +@end + +int f0(A *a) { + return a.p0; +} + +@implementation A +@synthesize p0 = _p0; +@end |