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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [ext/] [always_inline-4.C] - Blame information for rev 801

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

Line No. Rev Author Line
1 693 jeremybenn
// { dg-options "-O0" }
2
// { dg-do compile }
3
// PR C++/34715
4
 
5
 template 
6
 const T& min123(const T& a, const T& b);
7
template 
8
inline __attribute__ ((always_inline)) const T&
9
min123(const T& a, const T& b)
10
{
11
 return a < b ? a : b;
12
}
13
int main()
14
{
15
 int a, b;
16
 return min123(a, b);
17
}
18
 
19
 
20
// { dg-final { scan-assembler-not "min123" } }

powered by: WebSVN 2.1.0

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