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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [debug/] [dwarf2/] [pr37726.c] - Blame information for rev 774

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

Line No. Rev Author Line
1 689 jeremybenn
/* PR debug/37726 */
2
/* { dg-do compile } */
3
/* { dg-options "-g -O0 -dA -fno-merge-debug-strings" } */
4
 
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.