summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-04-24 02:38:10 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-04-24 02:38:10 +0000
commit449354c761532dddc8b64a907372f43b77485751 (patch)
tree3afcd314b8fc22b2d6f786d0f7ddb7a4e524ce53 /clang
parent46c97e626f0c99bc271f212242446186ed3c2474 (diff)
downloadbcm5719-llvm-449354c761532dddc8b64a907372f43b77485751.tar.gz
bcm5719-llvm-449354c761532dddc8b64a907372f43b77485751.zip
Add a test case for a somewhat obscure scenario.
llvm-svn: 69947
Diffstat (limited to 'clang')
-rw-r--r--clang/test/CodeGenObjC/forward-class-impl-metadata.m19
1 files changed, 18 insertions, 1 deletions
diff --git a/clang/test/CodeGenObjC/forward-class-impl-metadata.m b/clang/test/CodeGenObjC/forward-class-impl-metadata.m
index b3976d64584..b8ce10aaa51 100644
--- a/clang/test/CodeGenObjC/forward-class-impl-metadata.m
+++ b/clang/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
OpenPOWER on IntegriCloud