Allow empty struct expressions in Rust
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.rust / simple.exp
index 32b3785c97172b8201a0e2ab4923283fad27cd1e..5e00b03c08816e390f8cfb0b152dd28d535f966d 100644 (file)
@@ -55,7 +55,10 @@ gdb_test "print *(&c as *mut i32)" " = 0"
 
 gdb_test "print j" " = simple::Unit"
 gdb_test "ptype j" " = struct simple::Unit"
+gdb_test "print j2" " = simple::Unit"
+gdb_test "ptype j2" " = struct simple::Unit"
 gdb_test "print simple::Unit" " = simple::Unit"
+gdb_test "print simple::Unit{}" " = simple::Unit"
 
 gdb_test "print g" " = \\(u8 \\(\\*\\)\\\[6\\\]\\) $hex b\"hi bob\""
 gdb_test "ptype g" " = u8 \\(\\*\\)\\\[6\\\]"
This page took 0.034992 seconds and 4 git commands to generate.