☰
Debian Codegraph
@
1:19.1.7-22
1:19.1.7-20
/
/
clang
/
test
/
SemaTemplate
/
instantiate-overloaded-arrow.cpp
☽
☼
clang/test/SemaTemplate/instantiate-overloaded-arrow.cpp
code
plain
raw
APACHE-2-LLVM-EXCEPTIONS
2003-2017 University of Illinois at Urbana-Champaign.
debian/copyright
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