Debian Codegraph @

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

raw
1 /* PR target/119873 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2" } */
4
5 extern int foo (int, int, int, long long, int);
6
7 int
8 bar (int u, int v, int w, long long x, int y)
9 {
10 [[gnu::musttail]] return foo (u, v, w, x + 1, y - 1); /* { dg-error "cannot tail-call: target is not able to optimize the call into a sibling call" } */
11 }
12
13 extern int baz (int, int, int, int, int);
14
15 int
16 qux (int u, int v, int w, int x, int y)
17 {
18 [[gnu::musttail]] return baz (u, v, w, x, y + 1); /* { dg-error "cannot tail-call: target is not able to optimize the call into a sibling call" } */
19 }
20
21 extern int corge (int, int, int, int, unsigned short);
22
23 int
24 garply (int u, int v, int w, int x, unsigned short y)
25 {
26 [[gnu::musttail]] return corge (u, v, w, x, y + 1); /* { dg-error "cannot tail-call: target is not able to optimize the call into a sibling call" } */
27 }