Debian Codegraph @

gcc/testsuite/c-c++-common/strub-O2fni.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fstrub=strict -fdump-rtl-expand -fno-inline -fno-stack-protector" } */
3 /* { dg-require-effective-target strub } */
4
5 /* With -fno-inline, none of the strub builtins are inlined. */
6
7 int __attribute__ ((__strub__)) var;
8
9 int f() {
10 return var;
11 }
12
13 /* { dg-final { scan-rtl-dump "strub_enter" "expand" } } */
14 /* { dg-final { scan-rtl-dump "strub_update" "expand" } } */
15 /* { dg-final { scan-rtl-dump "strub_leave" "expand" } } */
16 /* { dg-final { scan-rtl-dump-not "\[(\]call\[^\n\]*strub_leave.*\n\[(\]code_label" "expand" } } */