1 /* { dg-do compile } */
2 /* { dg-options "-fstrub=at-calls -fdump-ipa-strubm -fdump-ipa-strub" } */
3 /* { dg-require-effective-target strub } */
5 /* h becomes STRUB_CALLABLE, rather than STRUB_INLINABLE, because of the
6 strub-enabling -fstrub flag, and gets inlined before pass_ipa_strub. */
8 __attribute__ ((__always_inline__
))
12 /* g becomes STRUB_AT_CALLS, because of the flag. */
18 /* f does NOT become STRUB_AT_CALLS because it is visible; it becomes
25 /* { dg-final { scan-ipa-dump-times "strub \[(\]" 3 "strubm" } } */
26 /* { dg-final { scan-ipa-dump-times "strub \[(\]at-calls\[)\]" 1 "strubm" } } */
27 /* { dg-final { scan-ipa-dump-times "strub \[(\]callable\[)\]" 2 "strubm" } } */
29 /* { dg-final { scan-ipa-dump-times "strub \[(\]" 2 "strub" } } */
30 /* { dg-final { scan-ipa-dump-times "strub \[(\]at-calls\[)\]" 1 "strub" } } */
31 /* { dg-final { scan-ipa-dump-times "strub \[(\]callable\[)\]" 1 "strub" } } */