aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/decltype15.C
blob: f19819cfd19809ffd1c9e7c0799c3fe20b1c64f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/38640
// { dg-do compile { target c++11 } }

template<int N> void foo (decltype (N));
template<long int N> void foo (decltype (N));

void
bar (void)
{
  foo<5> (6);
  foo<5L> (6L);
}