testsuite: Skip analyzer tests on AIX.
[official-gcc.git] / gcc / testsuite / c-c++-common / strub-internal1.c
blobd17254904e50ab2af85d94c5b495f155e16dd7b2
1 /* { dg-do compile } */
2 /* { dg-options "-fstrub=internal -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. */
7 static inline void
8 __attribute__ ((__always_inline__))
9 h() {
12 /* g becomes STRUB_INTERNAL because of the flag, and gets split into
13 STRUB_WRAPPER and STRUB_WRAPPED. */
14 static inline void
15 g() {
16 h();
19 /* f becomes STRUB_INTERNAL because of the flag, and gets split into
20 STRUB_WRAPPER and STRUB_WRAPPED. */
21 void
22 f() {
23 g();
26 /* { dg-final { scan-ipa-dump-times "strub \[(\]" 3 "strubm" } } */
27 /* { dg-final { scan-ipa-dump-times "strub \[(\]callable\[)\]" 1 "strubm" } } */
28 /* { dg-final { scan-ipa-dump-times "strub \[(\]internal\[)\]" 2 "strubm" } } */
30 /* { dg-final { scan-ipa-dump-times "strub \[(\]" 4 "strub" } } */
31 /* { dg-final { scan-ipa-dump-times "strub \[(\]wrapped\[)\]" 2 "strub" } } */
32 /* { dg-final { scan-ipa-dump-times "strub \[(\]wrapper\[)\]" 2 "strub" } } */