URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [lambda/] [lambda-ice2.C] - Rev 693
Compare with Previous | Blame | View Log
// PR c++/42083// { dg-options "-std=c++0x" }template<typename F>decltype(F()) run(F f) // { dg-message "note" }{return f();}int main(){auto l = []() { return 5; }; // { dg-message "lambda closure type" }run(l); // { dg-error "no match" }// { dg-message "candidate" "candidate note" { target *-*-* } 14 }// { dg-error "use of deleted function" "candidate explanation" { target *-*-* } 5 }}
