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
/
var-templ28.C
blob
ba0927826534f5772200566d8153f782bc00ff74
1
// PR c++/66210
2
// { dg-do compile { target c++14 } }
3
4
using resultType = const char*;
5
6
template<typename T>
7
T pi = (T)(3.1415926535897932385);
8
9
template<>
10
resultType pi<resultType> = "pi";
11
12
void foo()
13
{
14
(void)pi<resultType>;
15
}