summaryrefslogtreecommitdiffstats
path: root/test/Modules/method_pool.m
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2013-02-07 19:13:24 +0000
committerDouglas Gregor <dgregor@apple.com>2013-02-07 19:13:24 +0000
commit7666b03d499819214752ae392efe666ca856d0e7 (patch)
treeee3ebcd94ce41463b105ae081f643f7b64f376a0 /test/Modules/method_pool.m
parent90b5ac660ef96b9d59dff837e96fd72d0673d7de (diff)
Retain all hidden methods in the global method pool, because they may become visible <rdar://problem/13172858>.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174648 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Modules/method_pool.m')
-rw-r--r--test/Modules/method_pool.m8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Modules/method_pool.m b/test/Modules/method_pool.m
index 1b94efb79f..712e55d4d6 100644
--- a/test/Modules/method_pool.m
+++ b/test/Modules/method_pool.m
@@ -19,6 +19,10 @@ void testMethod2(id object) {
[object method2:1];
}
+void testMethod4(id object) {
+ [object method4]; // expected-warning{{instance method '-method4' not found (return type defaults to 'id')}}
+}
+
@import MethodPoolB;
void testMethod1Again(id object) {
@@ -46,3 +50,7 @@ void testMethod3AgainAgain(id object) {
// expected-note@2{{using}}
// expected-note@2{{also found}}
}
+
+void testMethod4Again(id object) {
+ [object method4];
+}