strub: enable conditional support
[official-gcc.git] / gcc / testsuite / c-c++-common / strub-relaxed1.c
blobd2b4b52c51e60cf58e342618130c244e2344e4ee
1 /* { dg-do compile } */
2 /* { dg-options "-fstrub=relaxed -fdump-ipa-strubm -fdump-ipa-strub" } */
3 /* { dg-require-effective-target strub } */
5 /* The difference between relaxed and strict in this case is that we accept the
6 call from one internal-strub function to another. Without the error,
7 inlining takes place. */
9 #include "strub-strict1.c"
11 /* { dg-final { scan-ipa-dump-times "strub \[(\]" 3 "strubm" } } */
12 /* { dg-final { scan-ipa-dump-times "strub \[(\]inlinable\[)\]" 1 "strubm" } } */
13 /* { dg-final { scan-ipa-dump-times "strub \[(\]at-calls-opt\[)\]" 1 "strubm" } } */
14 /* { dg-final { scan-ipa-dump-times "strub \[(\]internal\[)\]" 1 "strubm" } } */
16 /* { dg-final { scan-ipa-dump-times "strub \[(\]" 3 "strub" } } */
17 /* { dg-final { scan-ipa-dump-times "strub \[(\]at-calls-opt\[)\]" 1 "strub" } } */
18 /* { dg-final { scan-ipa-dump-times "strub \[(\]wrapped\[)\]" 1 "strub" } } */
19 /* { dg-final { scan-ipa-dump-times "strub \[(\]wrapper\[)\]" 1 "strub" } } */