blob: 244c3f7d0193e5f92bbde80e7cba73051462be83 [file] [log] [blame]
Douglas Gregorf25760e2011-04-12 01:02:45 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
Andy Gibbs8e8fb3b2012-10-19 12:44:48 +00002// expected-no-diagnostics
Douglas Gregorf25760e2011-04-12 01:02:45 +00003
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}