blob: ee537840e0ebc3c7de1e3d2988ce4013da7bd499 [file] [log] [blame]
Douglas Gregorf0aaf7a2009-04-24 21:10:55 +00001// Test this without pch.
Daniel Dunbara5728872009-12-15 20:14:24 +00002// RUN: %clang_cc1 -include %S/method_pool.h -fsyntax-only -verify %s
Douglas Gregorf0aaf7a2009-04-24 21:10:55 +00003
4// Test with pch.
Daniel Dunbara5728872009-12-15 20:14:24 +00005// RUN: %clang_cc1 -x objective-c -emit-pch -o %t %S/method_pool.h
6// RUN: %clang_cc1 -include-pch %t -fsyntax-only -verify %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
12
13
14
15
16/* Whitespace below is significant */
17/* expected-note{{using}} */
18
19
20
21/* expected-note{{also}} */