diff options
Diffstat (limited to 'gcc/testsuite/c-c++-common/strub-defer-O2.c')
-rw-r--r-- | gcc/testsuite/c-c++-common/strub-defer-O2.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/testsuite/c-c++-common/strub-defer-O2.c b/gcc/testsuite/c-c++-common/strub-defer-O2.c new file mode 100644 index 0000000..fddf3c7 --- /dev/null +++ b/gcc/testsuite/c-c++-common/strub-defer-O2.c @@ -0,0 +1,8 @@ +/* { dg-do run } */ +/* { dg-options "-fstrub=strict -O2" } */ + +/* Check that a strub function called by another strub function does NOT defer + the strubbing to its caller at -O2. */ + +#define EXPECT_DEFERRAL ! +#include "strub-defer-O3.c" |