aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2009-04-01 16:51:23 +0000
committerFariborz Jahanian <fjahanian@apple.com>2009-04-01 16:51:23 +0000
commit5e2307437317922ce2202a2e990abb459d51175c (patch)
treef8643795a577477ae05109b185fe2b6cf1235d79
parent4eee2742c37abb44782c15acd072f8aa1717e036 (diff)
Test case for Chris's patch:
http://llvm.org/viewvc/llvm-project?view=rev&revision=68177 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68213 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/CodeGenObjC/forward-class-ivar-access.m43
1 files changed, 43 insertions, 0 deletions
diff --git a/test/CodeGenObjC/forward-class-ivar-access.m b/test/CodeGenObjC/forward-class-ivar-access.m
new file mode 100644
index 0000000000..c90d8ad213
--- /dev/null
+++ b/test/CodeGenObjC/forward-class-ivar-access.m
@@ -0,0 +1,43 @@
+// RUN: clang-cc -emit-llvm -o %t %s
+
+@class XCLogItemAdapter;
+@class XCEConfigurableDataSource;
+
+@interface XCBuildResultsOutlineLogic {
+ XCLogItemAdapter * _toplevelItemAdapter;
+}
+
+@end
+
+
+@interface XCBuildResultsOutlineView
+@property(nonatomic,readonly) XCEConfigurableDataSource * xceDataSource;
+
+@end
+
+@interface XCEConfigurableDataSource
+@property (nonatomic, assign) id context;
+
+@end
+
+
+@implementation XCBuildResultsOutlineView
+@dynamic xceDataSource;
+- selectionSource {
+ XCBuildResultsOutlineLogic * outlineLogic;
+}
+
+@end
+
+@interface XCLogItemAdapter {
+ id _textColor;
+}
+
+
+@end
+
+@implementation XCLogItemAdapter
+- (id) FOOO
+{
+ return _textColor;
+}