Debian Codegraph @

gcc/testsuite/g++.dg/asan/pr120608.C

raw
1 // PR middle-end/120608
2 // { dg-do compile { target musttail } }
3 // { dg-options "-fsanitize=address" }
4 // { dg-skip-if "" { *-*-* } { "*" } { "-O0" } }
5
6 struct A;
7 struct B { unsigned long b; };
8 typedef const char *(*F) (void *u, const char *v, void *w, const struct A *x,
9 unsigned long y, struct B z);
10 struct A { F a; };
11
12 const char *
13 foo (void *u, const char *v, void *w, const struct A *x, unsigned long y,
14 struct B z)
15 {
16 [[gnu::musttail]] return x->a (u, v, w, x, y, z);
17 }