repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Remove not needed __builtin_expect due to malloc predictor.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
auto-fn30.C
blob
e005e6ec69203362794d700212b927bd66ed079a
1
// PR c++/67835
2
// { dg-do compile { target c++14 } }
3
4
template<class Tag, class T>
5
auto g(Tag tag, T x) {
6
return f(tag, x);
7
}
8
9
namespace abc {
10
struct tag {};
11
12
struct A {};
13
14
template<class T>
15
auto f(tag, T x) { return x; }
16
}
17
18
int main() {
19
g(abc::tag(), abc::A());
20
return 0;
21
}