c++: prvalue of array type [PR111286]
[official-gcc.git] / gcc / testsuite / c-c++-common / strub-Og.c
bloba81f220c08f26e844f86a77872151fcd57f5aef5
1 /* { dg-do compile } */
2 /* { dg-options "-Og -fstrub=strict -fdump-rtl-expand -fno-stack-protector" } */
3 /* { dg-require-effective-target strub } */
5 /* At -Og, without -fno-inline, we fully expand enter, but neither update nor
6 leave. */
8 int __attribute__ ((__strub__)) var;
10 int f() {
11 return var;
14 /* { dg-final { scan-rtl-dump-not "strub_enter" "expand" } } */
15 /* { dg-final { scan-rtl-dump "strub_update" "expand" } } */
16 /* { dg-final { scan-rtl-dump "strub_leave" "expand" } } */
17 /* { dg-final { scan-rtl-dump-not "\[(\]call\[^\n\]*strub_leave.*\n\[(\]code_label" "expand" } } */