summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/always_inline-2.C
blob: 31123c19229b921fb9a6629bd628acf51c51850b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// { dg-options "-O0" }
// { dg-do compile }
// PR C++/34715


namespace X
{
 template <class T>
 const T& min123(const T& a, const T& b);
}


template <class T>
inline __attribute__ ((always_inline)) const T& X::min123(const T& a, const T& b)
{
 return a < b ? a : b;
}
int main()
{
 int a, b;
 return X::min123(a, b);
}



// { dg-final { scan-assembler-not "min123" } }