[clang][lex] NFCI: Use DirectoryEntryRef in ModuleMap::inferFrameworkModule()
[llvm-project.git] / clang / test / SemaTemplate / instantiate-overloaded-arrow.cpp
blobb21c7a34ad4c5e8b68fce1ed0fe3b8a51913ce74
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 // expected-no-diagnostics
3 // PR5488
5 struct X {
6 int x;
7 };
9 struct Iter {
10 X* operator->();
13 template <typename T>
14 void Foo() {
15 (void)Iter()->x;
18 void Func() {
19 Foo<int>();