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
/
initlist17.C
blob
6ff468989e0b84dca5c24eb8cf9ffab1f6f0df04
1
// { dg-do compile { target c++11 } }
2
3
void f(int i);
4
5
int main()
6
{
7
f({42.0}); // { dg-error "narrowing" }
8
return {1.0}; // { dg-error "narrowing" }
9
}