☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
pr50901.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/pr50901.C
code
plain
raw
1
// { dg-do compile { target c++11 } }
2
3
template<class T> int foo(int a)
4
{
5
const unsigned b = a < 0 ? -a : a;
6
return 0;
7
}
8
9
int i = foo<float>(1);