1// RUN: %clang_cc1 -fsyntax-only -verify %s 2// expected-no-diagnostics 3 4// For the purposes of Argument-Dependent Lookup, Objective-C classes are 5// considered to be in the global 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} 20