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