1// RUN: %clang_cc1 -fsyntax-only -verify %s 2// expected-no-diagnostics 3 4// <rdar://problem/9142559>: For the purposes of Argument-Dependent 5// Lookup, Objective-C classes are considered to be in the global 6// namespace. 7 8@interface NSFoo 9@end 10 11template<typename T> 12void f(T t) { 13 g(t); 14} 15 16void g(NSFoo*); 17 18void test(NSFoo *foo) { 19 f(foo); 20} 21