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/] [inline3.c] - Blame information for rev 399

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 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 399 jeremybenn
/* { dg-options "-O2 -gdwarf-2 -dA" } */
5 298 jeremybenn
/* { 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.