]> granicus.if.org Git - clang/commitdiff
Add a test case for a somewhat obscure scenario.
authorDaniel Dunbar <daniel@zuster.org>
Fri, 24 Apr 2009 02:38:10 +0000 (02:38 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Fri, 24 Apr 2009 02:38:10 +0000 (02:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69947 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGenObjC/forward-class-impl-metadata.m

index b3976d6458444bc8687303da1d834e68e68ae60f..b8ce10aaa510513a89a5372edebd962d42d49686 100644 (file)
@@ -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
 
 @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