20 lines · plain
1// RUN: %clang_cc1 -fsyntax-only -verify %s2// expected-no-diagnostics3 4// For the purposes of Argument-Dependent Lookup, Objective-C classes are5// considered to be in the global namespace.6 7@interface NSFoo8@end9 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