OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [g++.dg/] [debug/] [dwarf2/] [inline1.C] - Blame information for rev 384

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 301 jeremybenn
// This isn't really testing dwarf output, but rather that we can inline f
2
// even though the call precedes the definition.
3
 
4
// { dg-options "-gdwarf-2 -dA -O" }
5
// { dg-final { scan-assembler "DW_TAG_inlined_subroutine" } }
6
 
7
template 
8
inline T f(T);
9
 
10
int main()
11
{
12
  f(1);
13
}
14
 
15
int i;
16
 
17
template 
18
inline T f(T t) { ++i; return t; }

powered by: WebSVN 2.1.0

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