summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/pr50901.C
blob: 439c15cc1cd7eb63e79ac62d0a4e475b0cfe0a8a (plain)
1
2
3
4
5
6
7
8
9
// { dg-options "-std=c++0x" }

template<class T> int foo(int a)
{
  const unsigned b = a < 0 ? -a : a;
  return 0;
}

int i = foo<float>(1);