// 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);
}
