blob: 139f8ba4a69bddc60fda45cb156f7e7c9e23b9ca [file] [log] [blame]
Douglas Gregorf0aaf7a2009-04-24 21:10:55 +00001// Test this without pch.
Patrick Beardb2f68202012-04-06 18:12:22 +00002// RUN: %clang_cc1 -include %S/method_pool.h -fsyntax-only -verify -Wno-objc-root-class %s
Douglas Gregorf0aaf7a2009-04-24 21:10:55 +00003
4// Test with pch.
Patrick Beardb2f68202012-04-06 18:12:22 +00005// RUN: %clang_cc1 -x objective-c -Wno-objc-root-class -emit-pch -o %t %S/method_pool.h
6// RUN: %clang_cc1 -include-pch %t -fsyntax-only -verify -Wno-objc-root-class %s
Douglas Gregorf0aaf7a2009-04-24 21:10:55 +00007
8int message_id(id x) {
9 return [x instMethod:17]; // expected-warning{{multiple methods}}
10}
11
Andy Gibbsb42f2002013-04-17 08:06:46 +000012/* expected-note@method_pool.h:17{{using}} */
13/* expected-note@method_pool.h:21{{also}} */