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
Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git]
/
clang
/
test
/
SemaTemplate
/
instantiate-expr-6.cpp
blob
e6f7fe3f6607245e3dab082ece4ded41beedc4f2
1
// RUN: %clang_cc1 -std=c++11 -emit-llvm-only %s
2
3
struct
X
{
4
template
<
typename T
>
static
typename
T
::
type
g
(
T t
);
5
template
<
typename T
>
auto
f
(
T t
) ->
decltype
(
g
(
t
));
6
void
f
(...);
7
};
8
9
void
test
() {
10
X
().
f
(
0
);
11
X
().
f
(
0
);
12
}