| 1 |
// { dg-options "-O2 -ftemplate-depth-20000" } |
| 2 |
|
| 3 |
template <int I> |
| 4 |
inline void g() { g<I-1>(); return; } |
| 5 |
|
| 6 |
template <> |
| 7 |
inline void g<0>() { int i; return; } |
| 8 |
|
| 9 |
void h() { |
| 10 |
g<250>(); |
| 11 |
} |
| 12 |
|
| 13 |
// { dg-final { scan-assembler-not "\n_?_Z1gILi\[0-9\]+EEvv\[: \t\n\]" } } |