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
RISC-V/libgcc: Save/Restore routines for E goes with ABI.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
var-templ36.C
blob
760e36fca44aaedc69d8be037f69b5403b9e49db
1
// { dg-do compile { target c++14 } }
2
3
template <class T>
4
constexpr T v = T();
5
6
template <class T>
7
constexpr T v<T*> = T();
8
9
template <class T>
10
struct A {
11
static constexpr decltype (v<T>) v = ::v<T>;
12
};
13
14
double d1 = v<double*>;
15
double d2 = A<double*>::v;