From: Daniel Dunbar Date: Fri, 24 Apr 2009 02:38:10 +0000 (+0000) Subject: Add a test case for a somewhat obscure scenario. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6a3b29e29b7b7653fb55b1376ca5e74ad7731b17;p=clang 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 --- 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