gcc/testsuite/c-c++-common/musttail1.c
raw| 1 | /* { dg-do compile { target { musttail && { c || c++11 } } } } */ |
| 2 | /* { dg-additional-options "-fdelayed-branch" { target sparc*-*-* } } */ |
| 3 | |
| 4 | int __attribute__((noinline,noclone,noipa)) |
| 5 | callee (int i) |
| 6 | { |
| 7 | return i * i; |
| 8 | } |
| 9 | |
| 10 | int __attribute__((noinline,noclone,noipa)) |
| 11 | caller (int i) |
| 12 | { |
| 13 | [[gnu::musttail]] return callee (i + 1); |
| 14 | } |