diff options
author | Dave Lee <davelee.com@gmail.com> | 2023-05-11 10:04:55 -0700 |
---|---|---|
committer | Dave Lee <davelee.com@gmail.com> | 2023-05-11 13:24:32 -0700 |
commit | efbd5870402b53dc8aeee2d087db3109d198e3dc (patch) | |
tree | de274bb6508b32609c827a63fd9521e64dd3ac21 /lldb/test | |
parent | 1b11034c672fc90d35b4bc0e93f3507657b14094 (diff) | |
download | llvm-efbd5870402b53dc8aeee2d087db3109d198e3dc.tar.gz |
[lldb] Correct elision of line zero in mixed disassembly
When `disassemble --mixed` is run, do not show source for line zero, as intended.
Differential Revision: https://reviews.llvm.org/D150383
Diffstat (limited to 'lldb/test')
-rw-r--r-- | lldb/test/Shell/Commands/command-disassemble-mixed.test | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lldb/test/Shell/Commands/command-disassemble-mixed.test b/lldb/test/Shell/Commands/command-disassemble-mixed.test new file mode 100644 index 000000000000..d27cdb1cb5a1 --- /dev/null +++ b/lldb/test/Shell/Commands/command-disassemble-mixed.test @@ -0,0 +1,13 @@ +extern int do_not_show; + +int main() { + int abc = 30; +#line 0 + return abc; +} + +// RUN: %clang_host -g -x c -o a.out %s +// RUN: %lldb -b -o 'disassemble --mixed -n main' a.out | FileCheck %s + +// CHECK: a.out`main: +// CHECK-NOT: do_not_show |