diff options
| author | Michael Kruse <llvm-project@meinersbur.de> | 2025-01-03 10:22:51 +0100 |
|---|---|---|
| committer | Michael Kruse <llvm-project@meinersbur.de> | 2025-01-03 10:22:51 +0100 |
| commit | 38500d63e14ce340236840f60d356cdefb56a52c (patch) | |
| tree | 17edbec446ce9b50d2f215a483b83afb293a635d /lldb/test/Shell/ScriptInterpreter/Python/bytecode.test | |
| parent | 1a3d5daaef7a6a63448a497da3eff7fc9e23df26 (diff) | |
| parent | 27f30029741ecf023baece7b3dde1ff9011ffefc (diff) | |
Merge branch 'main' into users/meinersbur/flang_runtime_split-headersusers/meinersbur/flang_runtime_split-headers
Diffstat (limited to 'lldb/test/Shell/ScriptInterpreter/Python/bytecode.test')
| -rw-r--r-- | lldb/test/Shell/ScriptInterpreter/Python/bytecode.test | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lldb/test/Shell/ScriptInterpreter/Python/bytecode.test b/lldb/test/Shell/ScriptInterpreter/Python/bytecode.test new file mode 100644 index 000000000000..274568029266 --- /dev/null +++ b/lldb/test/Shell/ScriptInterpreter/Python/bytecode.test @@ -0,0 +1,16 @@ +# RUN: %python %S/../../../../examples/python/formatter_bytecode.py --test +# RUN: %python %S/../../../../examples/python/formatter_bytecode.py --compile "1u dup" | FileCheck %s --check-prefix=COMPILE +# RUN: %python %S/../../../../examples/python/formatter_bytecode.py --disassemble "200101" | FileCheck %s --check-prefix=DISASSEMBLE +# COMPILE: 200101 +# DISASSEMBLE: 1u dup + +# 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 = { +# OPTIONAL: hasVal = false +# OPTIONAL: } +# OPTIONAL: (lldb) v y +# OPTIONAL: (MyOptional<int>) y = { +# OPTIONAL: Storage = (value = 42, hasVal = true) +# OPTIONAL: } |
