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