Debian Codegraph @

gcc/testsuite/c-c++-common/asan/pr120608-4.c

raw
1 /* PR middle-end/120608 */
2 /* { dg-do compile { target musttail } } */
3 /* { dg-options "-fsanitize=address -fno-exceptions" } */
4
5 [[gnu::noipa]] void
6 bar (int *x, int *y, int *z)
7 {
8 (void) x;
9 (void) y;
10 (void) z;
11 }
12
13 [[gnu::noipa]] int
14 baz (int x)
15 {
16 int a = 4;
17 {
18 int b = 8;
19 {
20 int c = 10;
21 bar (&a, &b, &c);
22 if (a + b + c + x == 22)
23 [[gnu::musttail]] return baz (x - 1);
24 bar (&a, &b, &c);
25 }
26 bar (&a, &b, &a);
27 }
28 bar (&a, &a, &a);
29 return 42;
30 }