xref: /minix3/external/bsd/llvm/dist/clang/test/SemaTemplate/instantiate-overloaded-arrow.cpp (revision 0b98e8aad89f2bd4ba80b523d73cf29e9dd82ce1)
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 // expected-no-diagnostics
3 // PR5488
4 
5 struct X {
6   int x;
7 };
8 
9 struct Iter {
10   X* operator->();
11 };
12 
13 template <typename T>
14 void Foo() {
15   (void)Iter()->x;
16 }
17 
18 void Func() {
19   Foo<int>();
20 }
21 
22