1# RUN: %lldb -b -o "language cplusplus demangle __ZN3Foo7DoThingEv" \ 2# RUN: | FileCheck --check-prefix=DOUBLE-UNDERSCORE %s 3# RUN: %lldb -b -o "language cplusplus demangle _ZN3Foo7DoThingEv" \ 4# RUN: | FileCheck --check-prefix=SINGLE-UNDERSCORE %s 5# RUN: not %lldb -b -o "language cplusplus demangle foo" 2>&1 \ 6# RUN: | FileCheck --check-prefix=NOT-MANGLED %s 7# RUN: not %lldb -b -o "language cplusplus demangle _ZN3Foo7DoThingEv foo" 2>&1 \ 8# RUN: | FileCheck --check-prefix=MULTI-ARG %s 9# RUN: %lldb -b -o "help language cplusplus demangle" \ 10# RUN: | FileCheck --check-prefix=HELP-MESSAGE %s 11 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 name 17 18# MULTI-ARG: _ZN3Foo7DoThingEv ---> Foo::DoThing() 19# MULTI-ARG: error: foo is not a valid C++ mangled name 20 21# HELP-MESSAGE: Demangle a C++ mangled name. 22# HELP-MESSAGE: Syntax: language cplusplus demangle [<mangled-name> ...] 23