Calling ifunc functions when target has no debug info but resolver has
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.compile / compile-ifunc.exp
index ed700e416bb4c74f425e7888134b65fc6e667a67..979e39147e7f12f5f4947223deec6addcdb91684 100644 (file)
@@ -37,7 +37,9 @@ with_test_prefix "nodebug" {
     }
 
     gdb_test "compile code resultvar = gnu_ifunc (10);" \
-       "warning: variable has unknown type; assuming int"
+       [multi_line \
+            "warning: variable has unknown type; assuming int" \
+            "warning: function has unknown return type; assuming int"]
 
     gdb_test "p (int) resultvar" " = 11"
 
@@ -52,10 +54,9 @@ with_test_prefix "debug" {
     if ![runto_main] {
        return -1
     }
-
     # gnu_ifunc (10): error: too many arguments to function 'gnu_ifunc'
-    gdb_test_no_output "compile code resultvar = gnu_ifunc_alias (10);"
-
+    gdb_test "compile code resultvar = gnu_ifunc_alias (10);" \
+       "warning: function has unknown return type; assuming int"
     gdb_test "p resultvar" " = 11"
 
 }
This page took 0.028019 seconds and 4 git commands to generate.