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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [lambda/] [lambda-deduce-ext-neg2.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// Test that this is accepted even when pedantic now that it's part
2
// of the standard.
3
 
4
// { dg-options "-std=c++0x -pedantic" }
5
 
6
bool b;
7
template 
8
T f (T t)
9
{
10
  [=] { return t+1; };          // OK
11
  return [=] {
12
    auto i = t+1;
13
    return i+1;
14
  }();
15
}
16
 
17
int main()
18
{
19
  if (f(1) != 3)
20
    return 1;
21
}

powered by: WebSVN 2.1.0

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