1 // 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 10 template<typename T> 11 void f(T t) { 12 g(t); 13 } 14 15 void g(NSFoo*); 16 17 void test(NSFoo *foo) { 18 f(foo); 19 } 20