gcc/testsuite/c-c++-common/strub-O3.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O3 -fstrub=strict -fdump-rtl-expand" } */ |
| 3 | /* { dg-require-effective-target strub } */ |
| 4 | |
| 5 | int __attribute__ ((__strub__)) var; |
| 6 | |
| 7 | int f() { |
| 8 | return var; |
| 9 | } |
| 10 | |
| 11 | /* { dg-final { scan-rtl-dump-not "strub_enter" "expand" } } */ |
| 12 | /* { dg-final { scan-rtl-dump-not "strub_update" "expand" } } */ |
| 13 | /* { dg-final { scan-rtl-dump-not "strub_leave" "expand" } } */ |