Debian Codegraph @

gcc/testsuite/c-c++-common/pr119618.c

raw
1 /* PR gcov-profile/119618 */
2 /* { dg-do compile { target musttail } } */
3 /* { dg-options "-fcompare-debug -fprofile-generate -O1" } */
4 /* { dg-require-profiling "-fprofile-generate" } */
5
6 struct S { char s; };
7 int foo (void);
8 int *(*fn) (void);
9
10 int *
11 bar (void)
12 {
13 if (foo ())
14 return 0;
15 {
16 struct S s;
17 do
18 [[gnu::musttail]] return fn ();
19 while (0);
20 }
21 }