strub: enable conditional support
[official-gcc.git] / gcc / testsuite / c-c++-common / strub-short-Os.c
blob3627a2406000ba5fec3a328e4004280b964b2cfd
1 /* { dg-do compile } */
2 /* { dg-options "-Os -fstrub=strict -fno-exceptions -fdump-ipa-strub" } */
3 /* { dg-require-effective-target strub } */
5 /* Check that the expected strub calls are issued. At -O3 and -Os, we omit
6 enter and leave calls within strub contexts, passing on the enclosing
7 watermark. */
9 #include "torture/strub-callable1.c"
11 /* { dg-final { scan-ipa-dump-times "strub_enter" 15 "strub" } } */
12 /* { dg-final { scan-ipa-dump-times "strub_update" 4 "strub" } } */
13 /* { dg-final { scan-ipa-dump-times "strub_leave" 15 "strub" } } */