Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/pr50901.C

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