Dave Lee e87d342553
[lldb] Fix bytecode.test (#184903)
Follow up to #184714.

There are some other latent bugs here inside the formatter, but for now
this puts the test in a working state.
2026-03-05 22:30:48 +00:00

13 lines
661 B
Plaintext

# RUN: %python %S/../../../../examples/python/formatter_bytecode.py --test
# RUN: %clang_host -std=c++17 -g %S/Inputs/FormatterBytecode/MyOptional.cpp -o %t.exe
# RUN: %lldb %t.exe -o "command script import %S/../../../../examples/python/formatter_bytecode.py" -o "command script import %S/Inputs/FormatterBytecode/formatter.py" -o "b -p here" -o "r" -o "v x" -o "v y" -o q | FileCheck %s --check-prefix=OPTIONAL
# OPTIONAL: (lldb) v x
# OPTIONAL: (MyOptional<int>) x = None {
# OPTIONAL: hasVal = false
# OPTIONAL: }
# OPTIONAL: (lldb) v y
# OPTIONAL: (MyOptional<int>) y = (int) value = 42 {
# OPTIONAL: Storage = (value = 42, hasVal = true)
# OPTIONAL: }