OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [lambda/] [lambda-copy-default.C] - Blame information for rev 826

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 301 jeremybenn
// { dg-do "run" }
2
// { dg-options "-std=c++0x" }
3
 
4
int main() {
5
  int i;
6
  const char* s;
7
  [=] () -> void { i; s; i; s; } ();
8
 
9
  //[] () -> void { i; } (); // { dg-error: "`i' is not in scope" }
10
  //[1] () -> void {} (); // { dg-error: "expected identifier" }
11
 
12
  return 0;
13
}
14
 

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.