1*67e74705SXin Li// Test this without pch. 2*67e74705SXin Li// RUN: %clang_cc1 -include %S/method_pool.h -fsyntax-only -verify -Wno-objc-root-class %s 3*67e74705SXin Li 4*67e74705SXin Li// Test with pch. 5*67e74705SXin Li// RUN: %clang_cc1 -x objective-c -Wno-objc-root-class -emit-pch -o %t %S/method_pool.h 6*67e74705SXin Li// RUN: %clang_cc1 -include-pch %t -fsyntax-only -verify -Wno-objc-root-class %s 7*67e74705SXin Li 8*67e74705SXin Liint message_id(id x) { 9*67e74705SXin Li return [x instMethod:17]; // expected-warning{{multiple methods}} 10*67e74705SXin Li} 11*67e74705SXin Li 12*67e74705SXin Li/* expected-note@method_pool.h:17{{using}} */ 13*67e74705SXin Li/* expected-note@method_pool.h:21{{also}} */ 14