summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/complit2.C
blob: cf3856d474e799bf4f8dee408df764ca4805937e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// PR c++/31038
// { dg-options "" }

template<int> void foo()
{
  int i = (int) { 0 };
}

template void foo<0>();
int f();

template<int> void bar()
{
  int i = (int) { f() };
}

template void bar<0>();