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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [debug/] [dwarf2/] [lambda1.C] - Blame information for rev 852

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/43912
2
// { dg-options "-g -std=c++0x -dA -fno-merge-debug-strings -gno-strict-dwarf" }
3
 
4
// Check for the local alias variables that point to the members of the closure.
5
// { dg-final { scan-assembler-times "DW_TAG_variable\[^.\]*\.ascii \"j.0\"" 4 } }
6
// { dg-final { scan-assembler-times "DW_TAG_variable\[^.\]*\.ascii \"this.0\"" 2 } }
7
 
8
struct A
9
{
10
  int i;
11
  int f()
12
  {
13
    int j;
14
    [&]() { j = i; }();
15
    return j;
16
  }
17
};
18
 
19
template 
20
struct B
21
{
22
  int i;
23
  int f()
24
  {
25
    int j;
26
    [&]() { j = i; }();
27
    return j;
28
  }
29
};
30
 
31
int main()
32
{
33
  A().f();
34
  B().f();
35
}

powered by: WebSVN 2.1.0

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