aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.rust/simple.rs
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.rust/simple.rs')
-rw-r--r--gdb/testsuite/gdb.rust/simple.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.rust/simple.rs b/gdb/testsuite/gdb.rust/simple.rs
index 32da580..3d28e27 100644
--- a/gdb/testsuite/gdb.rust/simple.rs
+++ b/gdb/testsuite/gdb.rust/simple.rs
@@ -48,6 +48,12 @@ fn diff2(x: i32, y: i32) -> i32 {
x - y
}
+// Empty function, should not have "void"
+// or "()" in its return type
+fn empty() {
+
+}
+
pub struct Unit;
// This triggers the non-zero optimization that yields a different
@@ -111,4 +117,5 @@ fn main () {
println!("{}, {}", x.0, x.1); // set breakpoint here
println!("{}", diff2(92, 45));
+ empty();
}