Debian Codegraph @

gcc/testsuite/gcc.target/s390/pr119873-2.c

raw
1 /* PR target/119873 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2" } */
4
5 const char *foo (void *, void *, void *, void *, unsigned long, unsigned long);
6
7 const char *
8 bar (void *a, void *b, void *c, void *d, unsigned long e, unsigned long f)
9 {
10 [[gnu::musttail]] return foo (a, b, c, d, e + 1, f); /* { dg-error "cannot tail-call: target is not able to optimize the call into a sibling call" } */
11 }
12
13 const char *
14 baz (void *a, void *b, void *c, void *d, unsigned long e, unsigned long f)
15 {
16 [[gnu::musttail]] return foo (a, b, c, d, f, e); /* { dg-error "cannot tail-call: target is not able to optimize the call into a sibling call" } */
17 }