diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-04-24 02:38:10 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-04-24 02:38:10 +0000 |
commit | 6a3b29e29b7b7653fb55b1376ca5e74ad7731b17 (patch) | |
tree | f75a4eafbd577652c880f5cf8e7049ff7380eb9f | |
parent | a4aa34d9f87decb2ad0e31eb136cda8df174a494 (diff) |
Add a test case for a somewhat obscure scenario.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69947 91177308-0d34-0410-b5e6-96231b3b80d8
-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 |