Bump version to 19.1.0 (final)
[llvm-project.git] / lldb / test / Shell / Settings / TestFrameFormatName.test
blobcaa3242527c6ef4d86bd9e6d88ef9ec9bd291cca
1 # UNSUPPORTED: system-windows
2 # Test different name formats.
4 # RUN: %build %S/Inputs/names.cpp --std c++17 -o %t.out
5 # RUN: split-file %s %t
7 #--- name_with_args.input
8 # RUN: %lldb -b -s %t/name_with_args.input %t.out | FileCheck %s --check-prefix=NAME_WITH_ARGS
9 settings set -f frame-format "frame ${function.name-with-args}\n"
10 break set -n foo
11 break set -n operator<<
12 break set -n returns_func_ptr
13 break set -n inlined_foo
14 run
15 # NAME_WITH_ARGS: frame int ns::foo<int ()>(t={{.*}})
17 # NAME_WITH_ARGS: frame int ns::foo<int ()>(str="bar")
19 # NAME_WITH_ARGS: frame int ns::foo<(anonymous namespace)::$_0>(t=(anonymous namespace)::(unnamed class) @ {{.*}})
21 # NAME_WITH_ARGS: frame int ns::foo<int (*)()>(t=({{.*}}`(anonymous namespace)::anon_bar() at {{.*}}))
23 # NAME_WITH_ARGS: frame int ns::foo<void (Foo::*)(int (*)(int)) const noexcept>(str="method")
25 # NAME_WITH_ARGS: frame ns::returns_func_ptr<int>((null)={{.*}})
27 # NAME_WITH_ARGS: frame void Foo::foo<int (*)()>(this={{.*}}, arg=({{.*}}`(anonymous namespace)::anon_bar() at {{.*}}))
29 # NAME_WITH_ARGS: frame void Foo::operator<<<1>(this={{.*}}, (null)=0)
31 # NAME_WITH_ARGS: frame Foo::returns_func_ptr<int>(this={{.*}}, (null)={{.*}})
33 # NAME_WITH_ARGS: frame main [inlined] inlined_foo(str="bar")
36 #--- name.input
37 # RUN: %lldb -b -s %t/name.input %t.out | FileCheck %s --check-prefix=NAME
38 settings set -f frame-format "frame ${function.name}\n"
39 break set -n inlined_foo
40 run
41 # NAME: frame main [inlined] inlined_foo(char const*)
43 #--- name_without_args.input
44 # RUN: %lldb -b -s %t/name_without_args.input %t.out | FileCheck %s --check-prefix=NAME_WITHOUT_ARGS
45 settings set -f frame-format "frame ${function.name-without-args}\n"
46 break set -n inlined_foo
47 run
48 # NAME_WITHOUT_ARGS: frame main [inlined] inlined_foo(char const*)
50 #--- mangled_name.input
51 # RUN: %lldb -b -s %t/mangled_name.input %t.out | FileCheck %s --check-prefix=MANGLED_NAME
52 settings set -f frame-format "frame ${function.mangled-name}\n"
53 break set -n inlined_foo
54 run
55 # MANGLED_NAME: frame main [inlined] inlined_foo(char const*)