☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
template
/
conv15.C
☽
☼
gcc/testsuite/g++.dg/template/conv15.C
code
plain
raw
1
// PR c++/86219
2
3
template <int a> struct t;
4
template <int a>
5
void f ()
6
{
7
const int b = ""; // { dg-error "conversion" }
8
t<b>::c; // { dg-error "constant" }
9
// { dg-prune-output "template argument 1 is invalid" }
10
}