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
c++, coroutines: Simplify separation of the user function body and ramp.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
lambda-init9.C
blob
795d036ca7566a58a70270348489b7035eef8654
1
// { dg-do compile { target c++14 } }
2
3
void f()
4
{
5
[&x=1]{}; // { dg-error "cannot capture|cannot bind non-const lvalue ref" }
6
}