[PATCH 4/6] FIXME: non-working scanasm test
David Malcolm
dmalcolm@redhat.com
Fri Jan 1 00:00:00 GMT 2016
---
gcc/testsuite/gcc.dg/plugin/must-tail-call-3.c | 14 ++++++++++++++
gcc/testsuite/gcc.dg/plugin/plugin.exp | 3 ++-
2 files changed, 16 insertions(+), 1 deletion(-)
create mode 100644 gcc/testsuite/gcc.dg/plugin/must-tail-call-3.c
diff --git a/gcc/testsuite/gcc.dg/plugin/must-tail-call-3.c b/gcc/testsuite/gcc.dg/plugin/must-tail-call-3.c
new file mode 100644
index 0000000..b3d129d
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/plugin/must-tail-call-3.c
@@ -0,0 +1,14 @@
+/* { dg-do compile } */
+
+extern int callee (int i);
+
+int __attribute__((noinline,noclone))
+caller (int i)
+{
+ return callee (i + 1);
+}
+
+/* FIXME: this is showing up as UNRESOLVED, with "output file does not exist"
+ scanasm.exp erroneously uses "must_tail_call_plugin" as the root name
+ of the test case, and hence "must_tail_call_plugin.s" as the $output_file. */
+/* { dg-final { scan-assembler-not "ret" } } */
diff --git a/gcc/testsuite/gcc.dg/plugin/plugin.exp b/gcc/testsuite/gcc.dg/plugin/plugin.exp
index 62f6797..688d59a 100644
--- a/gcc/testsuite/gcc.dg/plugin/plugin.exp
+++ b/gcc/testsuite/gcc.dg/plugin/plugin.exp
@@ -76,7 +76,8 @@ set plugin_test_list [list \
location-overflow-test-2.c } \
{ must_tail_call_plugin.c \
must-tail-call-1.c \
- must-tail-call-2.c } \
+ must-tail-call-2.c \
+ must-tail-call-3.c } \
]
foreach plugin_test $plugin_test_list {
--
1.8.5.3
More information about the Jit
mailing list