about summary refs log tree commit diff
path: root/src/test/debug-info
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/debug-info')
-rw-r--r--src/test/debug-info/tuple-style-enum.rs16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/test/debug-info/tuple-style-enum.rs b/src/test/debug-info/tuple-style-enum.rs
index 00144aa1bb5..5c12649dea7 100644
--- a/src/test/debug-info/tuple-style-enum.rs
+++ b/src/test/debug-info/tuple-style-enum.rs
@@ -14,19 +14,29 @@
 // debugger:run
 // debugger:finish
 
-// debugger:print case2
-// check:$1 = {Case1, 0, 1}
+// d ebugger:print case2
+// c heck:$1 = {Case1, 0, 1}
 
-enum Test {
+// debugger:print univariant
+// check:$1 = {{-1}}
+
+
+enum Regular {
     Case1(i32, i64),
     Case2(bool, i16, i32)
 }
 
+enum Univariant {
+	TheOnlyCase(i64)
+}
+
 fn main() {
 
     let case1 = Case1(110, 220);
     let case2 = Case2(false, 2, 3);
 
+    let univariant = TheOnlyCase(-1);
+
     zzz();
 }