Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.dwarf2 / dw2-intercu.exp
index d0166a8b87eff947be8a67340223e9fc22cc8202..b3d04dac5791936e7db9bc1e25ca087f0a385cc4 100644 (file)
@@ -45,8 +45,15 @@ gdb_load ${binfile}
 
 set remote_dwarf_srcfile [remote_download host ${srcdir}/${subdir}/${dwarf_srcfile}]
 
+# This needs to be done first so that the CU for int2 gets expanded first.
+# This exercises the case where the type for this die is hashed, but we
+# need to perform the inter-cu lookup before looking the type up in the
+# hash table.
+gdb_test "ptype int2" "type = int2"
+
 gdb_test_no_output "set listsize 1"
 gdb_test "list func_cu1" "4\[ \t\]+File 1 Line 4"
-gdb_test "ptype func_cu1" "type = int \\(\\)"
+
+gdb_test "ptype func_cu1" "type = int2 \\(\\)"
 
 remote_file host delete ${remote_dwarf_srcfile}
This page took 0.023497 seconds and 4 git commands to generate.