☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
template
/
complit2.C
☽
☼
gcc/testsuite/g++.dg/template/complit2.C
code
plain
raw
1
// PR c++/31038
2
// { dg-options "" }
3
4
template<int> void foo()
5
{
6
int i = (int) { 0 };
7
}
8
9
template void foo<0>();
10
int f();
11
12
template<int> void bar()
13
{
14
int i = (int) { f() };
15
}
16
17
template void bar<0>();