blob: a25cc68888d7fcdad502c5556f9c0be7e54c15e4 [file] [log] [blame]
Douglas Gregorf25760e2011-04-12 01:02:45 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
2
3// <rdar://problem/9142559>: For the purposes of Argument-Dependent
4// Lookup, Objective-C classes are considered to be in the global
5// namespace.
6
7@interface NSFoo
8@end
9
10template<typename T>
11void f(T t) {
12 g(t);
13}
14
15void g(NSFoo*);
16
17void test(NSFoo *foo) {
18 f(foo);
19}