[clang][lex] NFCI: Use DirectoryEntryRef in ModuleMap::inferFrameworkModule()
[llvm-project.git] / clang / test / SemaTemplate / dependent-names-no-std.cpp
blob2fb9d9909f756dc45a32a1c53fe215ab82885640
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'.
6 namespace PR10053 {
7 namespace ns {
8 struct Data {};
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}}
18 void f(ns::Data); // expected-note {{in namespace 'PR10053::ns'}}
20 A<ns::Data> a; // expected-note {{in instantiation of member function}}