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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* Verify that only one DW_AT_const_value is emitted for baz,
2
   not for baz abstract DIE and again inside of
3
   DW_TAG_inlined_subroutine.  */
4
/* { dg-options "-O2 -g -dA" } */
5
/* { dg-do compile } */
6
/* { dg-final { scan-assembler-times " DW_AT_const_value" 1 } } */
7
 
8
struct A { const long i; const long j; };
9
 
10
static inline long
11
foo (void)
12
{
13
  const struct A baz = { .i = 2, .j = 21 };
14
  asm volatile ("" : : : "memory");
15
  return baz.i * baz.j;
16
}
17
 
18
int
19
main ()
20
{
21
  return foo () - 42;
22
}

powered by: WebSVN 2.1.0

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