aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/strub-defer-O1.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/c-c++-common/strub-defer-O1.c')
-rw-r--r--gcc/testsuite/c-c++-common/strub-defer-O1.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/testsuite/c-c++-common/strub-defer-O1.c b/gcc/testsuite/c-c++-common/strub-defer-O1.c
new file mode 100644
index 0000000..3d73431
--- /dev/null
+++ b/gcc/testsuite/c-c++-common/strub-defer-O1.c
@@ -0,0 +1,7 @@
+/* { dg-do run } */
+/* { dg-options "-fstrub=strict -O1" } */
+
+/* Check that a strub function called by another strub function does NOT defer
+ the strubbing to its caller at -O1. */
+
+#include "strub-defer-O2.c"