Skip to content

Commit 10393a8

Browse files
committed
Add LLDB commands to tests/debuginfo/basic-types-globals.rs
1 parent 3be6803 commit 10393a8

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

tests/debuginfo/basic-types-globals.rs

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,38 @@
66
//@ [lto] compile-flags:-C lto
77
//@ [lto] no-prefer-dynamic
88

9+
// lldb-command:run
10+
// lldb-command:v B
11+
// lldb-check: ::B::[...] = false
12+
// lldb-command:v I
13+
// lldb-check: ::I::[...] = -1
14+
// lldb-command:v --format=d C
15+
// lldb-check: ::C::[...] = 97
16+
// lldb-command:v --format=d I8
17+
// lldb-check: ::I8::[...] = 68
18+
// lldb-command:v I16
19+
// lldb-check: ::I16::[...] = -16
20+
// lldb-command:v I32
21+
// lldb-check: ::I32::[...] = -32
22+
// lldb-command:v I64
23+
// lldb-check: ::I64::[...] = -64
24+
// lldb-command:v U
25+
// lldb-check: ::U::[...] = 1
26+
// lldb-command:v --format=d U8
27+
// lldb-check: ::U8::[...] = 100
28+
// lldb-command:v U16
29+
// lldb-check: ::U16::[...] = 16
30+
// lldb-command:v U32
31+
// lldb-check: ::U32::[...] = 32
32+
// lldb-command:v U64
33+
// lldb-check: ::U64::[...] = 64
34+
// lldb-command:v F16
35+
// lldb-check: ::F16::[...] = 1.5
36+
// lldb-command:v F32
37+
// lldb-check: ::F32::[...] = 2.5
38+
// lldb-command:v F64
39+
// lldb-check: ::F64::[...] = 3.5
40+
941
// gdb-command:run
1042
// gdb-command:print B
1143
// gdb-check:$1 = false

0 commit comments

Comments
 (0)