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] - Rev 774

Go to most recent revision | 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 -g -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;
}
 

Go to most recent revision | 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.