☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
lambda
/
lambda-deduce-neg.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-deduce-neg.C
code
plain
raw
1
// { dg-do compile { target c++11 } }
2
3
int main() {
4
int i = 0;
5
int& r = [&] () { return i; } (); // { dg-error "" "invalid initialization of non-const reference of type .int&. from a temporary of type .int." }
6
7
return 0;
8
}
9