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