Debian Codegraph @

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

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O0 -fstrub=strict -fdump-rtl-expand" } */
3 /* { dg-require-effective-target strub } */
4
5 /* At -O0, none of the strub builtins are expanded inline. */
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" } } */