Debian Codegraph @

gcc/testsuite/c-c++-common/strub-internal2.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-fstrub=internal -fdump-ipa-strubm -fdump-ipa-strub" } */
3 /* { dg-require-effective-target strub } */
4
5 /* g becomes STRUB_INTERNAL, because of the flag. */
6 static void
7 g() {
8 }
9
10 /* f becomes STRUB_INTERNAL because of the flag, and gets split into
11 STRUB_WRAPPER and STRUB_WRAPPED. */
12 void
13 f() {
14 g();
15 }
16
17 /* { dg-final { scan-ipa-dump-times "strub \[(\]" 2 "strubm" } } */
18 /* { dg-final { scan-ipa-dump-times "strub \[(\]internal\[)\]" 2 "strubm" } } */
19
20 /* { dg-final { scan-ipa-dump-times "strub \[(\]" 4 "strub" } } */
21 /* { dg-final { scan-ipa-dump-times "strub \[(\]wrapped\[)\]" 2 "strub" } } */
22 /* { dg-final { scan-ipa-dump-times "strub \[(\]wrapper\[)\]" 2 "strub" } } */