47 lines · plain
1# XFAIL: target-windows2 3# Test the ${function.scope} frame-format variable.4 5# RUN: split-file %s %t6# RUN: %clangxx_host -g -gdwarf %t/main.cpp -o %t.out7# RUN: %lldb -x -b -s %t/commands.input %t.out -o exit 2>&1 \8# RUN: | FileCheck %s9#10# RUN: %clangxx_host -O0 %t/main.cpp -o %t-nodebug.out11# RUN: %lldb -x -b -s %t/commands.input %t-nodebug.out -o exit 2>&1 \12# RUN: | FileCheck %s13 14#--- main.cpp15namespace ns::ns2 {16inline namespace ins {17template <typename T>18struct Foo {19 void func() {}20};21 22int foo() {23 Foo<int>{}.func();24 return 5;25}26} // namespace ins27} // namespace ns::ns228 29using namespace ns::ns2;30 31int bar() {32 return ns::ns2::foo();33}34 35int main() { return bar(); }36 37#--- commands.input38settings set -f frame-format "custom-frame '${function.scope}'\n"39break set -n func40 41run42bt43 44# CHECK: frame 'ns::ns2::ins::Foo<int>::'45# CHECK: frame 'ns::ns2::ins::'46# CHECK: frame ''47