repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR c++/86728 - C variadic generic lambda.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
pr50901.C
blob
de82435a43969dae4a173721a65ec62ffc038cf8
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);