blob: dcc830ff907c6cd9643e340225b70c7b39ad5bd0 [file] [log] [blame] [edit]
# UNSUPPORTED: system-windows
# 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: }