brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1015 B · 1055310 Raw
23 lines · plain
1# RUN: %lldb -b -o "language cplusplus demangle __ZN3Foo7DoThingEv" \2# RUN:   | FileCheck --check-prefix=DOUBLE-UNDERSCORE %s3# RUN: %lldb -b -o "language cplusplus demangle _ZN3Foo7DoThingEv" \4# RUN:   | FileCheck --check-prefix=SINGLE-UNDERSCORE %s5# RUN: not %lldb -b -o "language cplusplus demangle foo" 2>&1 \6# RUN:   | FileCheck --check-prefix=NOT-MANGLED %s7# RUN: not %lldb -b -o "language cplusplus demangle _ZN3Foo7DoThingEv foo" 2>&1 \8# RUN:   | FileCheck --check-prefix=MULTI-ARG %s9# RUN: %lldb -b -o "help language cplusplus demangle" \10# RUN:   | FileCheck --check-prefix=HELP-MESSAGE %s11 12# DOUBLE-UNDERSCORE: __ZN3Foo7DoThingEv ---> Foo::DoThing()13 14# SINGLE-UNDERSCORE: _ZN3Foo7DoThingEv ---> Foo::DoThing()15 16# NOT-MANGLED: error: foo is not a valid C++ mangled name17 18# MULTI-ARG: _ZN3Foo7DoThingEv ---> Foo::DoThing()19# MULTI-ARG: error: foo is not a valid C++ mangled name20 21# HELP-MESSAGE: Demangle a C++ mangled name.22# HELP-MESSAGE: Syntax: language cplusplus demangle [<mangled-name> ...] 23