llvm-project/clang/test/PCH/method_pool.m
Douglas Gregor c78d34699f PCH support for the global method pool (= instance and factory method
pools, combined). The methods in the global method pool are lazily
loaded from an on-disk hash table when Sema looks into its version of
the hash tables.

llvm-svn: 69989
2009-04-24 21:10:55 +00:00

22 lines
441 B
Objective-C

// Test this without pch.
// RUN: clang-cc -include %S/method_pool.h -fsyntax-only -verify %s &&
// Test with pch.
// RUN: clang-cc -x=objective-c -emit-pch -o %t %S/method_pool.h &&
// RUN: clang-cc -include-pch %t -fsyntax-only -verify %s
int message_id(id x) {
return [x instMethod:17]; // expected-warning{{multiple methods}}
}
/* Whitespace below is significant */
/* expected-note{{using}} */
/* expected-note{{also}} */