31 lines · plain
1# XFAIL: target-windows2 3# Test the ${function.qualifiers} 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.cpp15struct Foo {16 void foo() const volatile && {}17 void bar() { Foo{}.foo(); }18};19 20int main() { Foo{}.bar(); }21 22#--- commands.input23settings set -f frame-format "custom-frame '${function.qualifiers}'\n"24break set -n foo25 26run27bt28 29# CHECK: custom-frame ' const volatile &&'30# CHECK: custom-frame ''31