summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/method_pool.m
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2013-02-12 23:36:21 +0000
committerDouglas Gregor <dgregor@apple.com>2013-02-12 23:36:21 +0000
commitc14895645d28cfe49d933eb400a3ac5bad6adbba (patch)
tree08e2f42d75744e53a81d2184de3972a80d7a9773 /clang/test/Modules/method_pool.m
parent27029f464254f53dcd01904c917a9a73328b7111 (diff)
downloadbcm5719-llvm-c14895645d28cfe49d933eb400a3ac5bad6adbba.tar.gz
bcm5719-llvm-c14895645d28cfe49d933eb400a3ac5bad6adbba.zip
Order the methods in the global method pool based on when they become visible, not when they become deserialized <rdar://problem/13203033>.
llvm-svn: 175018
Diffstat (limited to 'clang/test/Modules/method_pool.m')
-rw-r--r--clang/test/Modules/method_pool.m20
1 files changed, 14 insertions, 6 deletions
diff --git a/clang/test/Modules/method_pool.m b/clang/test/Modules/method_pool.m
index 712e55d4d64..9a8897b3830 100644
--- a/clang/test/Modules/method_pool.m
+++ b/clang/test/Modules/method_pool.m
@@ -1,15 +1,15 @@
// RUN: rm -rf %t
// RUN: %clang_cc1 -fmodules-cache-path=%t -fmodules -I %S/Inputs %s -verify
-@import MethodPoolA;
-
-
-// in other file: // expected-note{{using}}
-
+@import MethodPoolA;
+@interface D
+- (void)method5:(D*)obj;
+@end
-// in other file: expected-note{{also found}}
+// in other file: // expected-note@7{{using}}
+// in other file: expected-note@12{{also found}}
void testMethod1(id object) {
[object method1];
@@ -23,6 +23,10 @@ void testMethod4(id object) {
[object method4]; // expected-warning{{instance method '-method4' not found (return type defaults to 'id')}}
}
+void testMethod5(id object, D* d) {
+ [object method5:d];
+}
+
@import MethodPoolB;
void testMethod1Again(id object) {
@@ -54,3 +58,7 @@ void testMethod3AgainAgain(id object) {
void testMethod4Again(id object) {
[object method4];
}
+
+void testMethod5Again(id object, D* d) {
+ [object method5:d];
+}
OpenPOWER on IntegriCloud