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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.dg/] [ext/] [always_inline-1.C] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 301 jeremybenn
// { dg-options "-O0" }
2
// { dg-do compile }
3
// PR C++/34715
4
 
5
 
6
namespace X
7
{
8
 template 
9
 const T& min(const T& a, const T& b);
10
 
11
 template 
12
 inline __attribute__ ((always_inline)) const T& min(const T& a, const T& b)
13
 {
14
  return a < b ? a : b;
15
 }
16
}
17
template 
18
inline __attribute__ ((always_inline)) T y(const T& a, const T& b)
19
{
20
 return X::min(a, b);
21
}
22
int main()
23
{
24
 int a = 0, b = 0;
25
 return y(a, b);
26
}

powered by: WebSVN 2.1.0

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