repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Introduce class rtx_reader
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
ext
/
always_inline-2.C
blob
31123c19229b921fb9a6629bd628acf51c51850b
1
// { dg-options "-O0" }
2
// { dg-do compile }
3
// PR C++/34715
4
5
6
namespace X
7
{
8
template <class T>
9
const T& min123(const T& a, const T& b);
10
}
11
12
13
template <class T>
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" } }