Debian Codegraph @

gcc/testsuite/g++.dg/template/complit2.C

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>();