brintos

brintos / llvm-project-archived public Read only

0
0
Text · 948 B · a09a961 Raw
44 lines · plain
1# XFAIL: target-windows2 3# Test the ${function.template-arguments} 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.cpp15template<typename K>16struct Foo {17    template<typename T>18    void func() {}19};20 21template<typename T, template <typename> class K,22         typename M>23int foo() {24    Foo<int>{}.func<T>();25    return 5;26}27 28int bar() {29  return foo<int, Foo, Foo<float>>();30}31 32int main() { return bar(); }33 34#--- commands.input35settings set -f frame-format "custom-frame '${function.template-arguments}'\n"36break set -n func37 38run39bt40 41# CHECK: custom-frame '<int>'42# CHECK: custom-frame '<int, Foo, Foo<float>>'43# CHECK: custom-frame ''44