Debian Codegraph @

gcc/testsuite/g++.dg/cpp1y/var-templ28.C

raw
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 }