OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [debug/] [dwarf2/] [pr37726.c] - Blame information for rev 399

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* PR debug/37726 */
2
/* { dg-do compile } */
3 399 jeremybenn
/* { dg-options "-gdwarf-2 -O0 -dA -fno-merge-debug-strings" } */
4 298 jeremybenn
 
5
int foo (int parm)
6
{
7
  int var = 0;
8
  int bar (void)
9
  {
10
    return parm + var;
11
  }
12
  parm++;
13
  var++;
14
  return bar ();
15
}
16
 
17
int
18
main (void)
19
{
20
  return foo (4) - 6;
21
}
22
 
23
/* Both parm and var variables should be in debug info for both foo and bar.  */
24
/* { dg-final { scan-assembler-times "\"parm\[^\n\]*\"\[^\n\]*DW_AT_name" 2 } } */
25
/* { dg-final { scan-assembler-times "\"var\[^\n\]*\"\[^\n\]*DW_AT_name" 2 } } */

powered by: WebSVN 2.1.0

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