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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [debug/] [dwarf2/] [inline3.c] - Rev 399

Compare with Previous | Blame | View Log

/* Verify that only one DW_AT_const_value is emitted for baz,
   not for baz abstract DIE and again inside of
   DW_TAG_inlined_subroutine.  */
/* { dg-options "-O2 -gdwarf-2 -dA" } */
/* { dg-do compile } */
/* { dg-final { scan-assembler-times " DW_AT_const_value" 1 } } */
 
struct A { const long i; const long j; };
 
static inline long
foo (void)
{
  const struct A baz = { .i = 2, .j = 21 };
  asm volatile ("" : : : "memory");
  return baz.i * baz.j;
}
 
int
main ()
{
  return foo () - 42;
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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