[cfe-commits] r69947 - /cfe/trunk/test/CodeGenObjC/forward-class-impl-metadata.m
Daniel Dunbar
daniel at zuster.org
Thu Apr 23 19:38:10 PDT 2009
Author: ddunbar
Date: Thu Apr 23 21:38:10 2009
New Revision: 69947
URL: http://llvm.org/viewvc/llvm-project?rev=69947&view=rev
Log:
Add a test case for a somewhat obscure scenario.
Modified:
cfe/trunk/test/CodeGenObjC/forward-class-impl-metadata.m
Modified: cfe/trunk/test/CodeGenObjC/forward-class-impl-metadata.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/forward-class-impl-metadata.m?rev=69947&r1=69946&r2=69947&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenObjC/forward-class-impl-metadata.m (original)
+++ cfe/trunk/test/CodeGenObjC/forward-class-impl-metadata.m Thu Apr 23 21:38:10 2009
@@ -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.
+
+ at interface A {
+ at public
+ int x;
+}
+ at property int p0;
+ at end
+
+int f0(A *a) {
+ return a.p0;
+}
+
+ at implementation A
+ at synthesize p0 = _p0;
+ at end
More information about the cfe-commits
mailing list