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-2.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
 
6
namespace X
7
{
8
 template 
9
 const T& min123(const T& a, const T& b);
10
}
11
 
12
 
13
template 
14
inline __attribute__ ((always_inline)) const T& X::min123(const T& a, const T& b)
15
{
16
 return a < b ? a : b;
17
}
18
int main()
19
{
20
 int a, b;
21
 return X::min123(a, b);
22
}
23
 
24
 
25
 
26
// { 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.