repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[clang][lex] NFCI: Use DirectoryEntryRef in ModuleMap::inferFrameworkModule()
[llvm-project.git]
/
clang
/
test
/
SemaTemplate
/
instantiate-overloaded-arrow.cpp
blob
b21c7a34ad4c5e8b68fce1ed0fe3b8a51913ce74
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