debug-info-template-member.cpp revision 8a40cc6f9cba0aaa1aac477e2b4c4605629dc587
1// RUN: %clang_cc1 -emit-llvm -g -triple x86_64-apple-darwin %s -o - | FileCheck %s
2
3class MyClass
4{
5public:
6    int add2(int j)
7    {
8        return add<2>(j);
9    }
10private:
11    template <int i> int add(int j)
12    {
13        return i + j;
14    }
15};
16
17MyClass m;
18
19// CHECK: metadata [[C_MEM:![0-9]*]], i32 0, null, null} ; [ DW_TAG_class_type ] [MyClass]
20// CHECK: [[C_MEM]] = metadata !{metadata {{.*}}, metadata [[C_TEMP:![0-9]*]], metadata {{.*}}}
21// CHECK: [[C_TEMP]] = {{.*}} ; [ DW_TAG_subprogram ] [line 11] [private] [add<2>]
22