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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [debug/] [dwarf2/] [inline1.C] - Blame information for rev 715

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 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.