1// RUN: %clang_cc1 -fsyntax-only -verify %s 2// 3// The whole point of this test is to verify certain diagnostics work in the 4// absence of namespace 'std'. 5 6namespace PR10053 { 7 namespace ns { 8 struct Data {}; 9 } 10 11 template<typename T> struct A { 12 T t; 13 A() { 14 f(t); // expected-error {{call to function 'f' that is neither visible in the template definition nor found by argument-dependent lookup}} 15 } 16 }; 17 18 void f(ns::Data); // expected-note {{in namespace 'PR10053::ns'}} 19 20 A<ns::Data> a; // expected-note {{in instantiation of member function}} 21} 22