| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-fstrub=relaxed -fdump-ipa-strubm -fdump-ipa-strub" } */ |
| 3 |
/* { dg-require-effective-target strub } */ |
| 4 |
|
| 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. */ |
| 8 |
|
| 9 |
#include "strub-strict1.c" |
| 10 |
|
| 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" } } */ |
| 15 |
|
| 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" } } */ |