2009-04-25 05:10:55 +08:00
|
|
|
// Test this without pch.
|
2012-04-07 02:12:22 +08:00
|
|
|
// RUN: %clang_cc1 -include %S/method_pool.h -fsyntax-only -verify -Wno-objc-root-class %s
|
2009-04-25 05:10:55 +08:00
|
|
|
|
|
|
|
// Test with pch.
|
2012-04-07 02:12:22 +08:00
|
|
|
// RUN: %clang_cc1 -x objective-c -Wno-objc-root-class -emit-pch -o %t %S/method_pool.h
|
|
|
|
// RUN: %clang_cc1 -include-pch %t -fsyntax-only -verify -Wno-objc-root-class %s
|
2009-04-25 05:10:55 +08:00
|
|
|
|
|
|
|
int message_id(id x) {
|
|
|
|
return [x instMethod:17]; // expected-warning{{multiple methods}}
|
|
|
|
}
|
|
|
|
|
2013-04-17 16:06:46 +08:00
|
|
|
/* expected-note@method_pool.h:17{{using}} */
|
|
|
|
/* expected-note@method_pool.h:21{{also}} */
|