mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-28 04:36:07 +00:00

not much reason to emit for constructors and destructors that aren't user defined. rdar://11593099 llvm-svn: 157970
22 lines
689 B
C++
22 lines
689 B
C++
// RUN: %clang_cc1 -emit-llvm -g -triple x86_64-apple-darwin %s -o - | FileCheck %s
|
|
|
|
class MyClass
|
|
{
|
|
public:
|
|
int add2(int j)
|
|
{
|
|
return add<2>(j);
|
|
}
|
|
private:
|
|
template <int i> int add(int j)
|
|
{
|
|
return i + j;
|
|
}
|
|
};
|
|
|
|
MyClass m;
|
|
|
|
// CHECK: metadata !{i32 {{.*}}, null, metadata !"MyClass", metadata {{.*}}, i32 {{.*}}, i64 8, i64 8, i32 0, i32 0, null, metadata [[C_MEM:.*]], i32 0, null, null} ; [ DW_TAG_class_type ]
|
|
// CHECK: [[C_MEM]] = metadata !{metadata {{.*}}, metadata [[C_TEMP:.*]]}
|
|
// CHECK: [[C_TEMP]] = metadata !{i32 {{.*}}, i32 0, metadata {{.*}}, metadata !"add<2>", metadata !"add<2>", metadata !"_ZN7MyClass3addILi2EEEii", metadata {{.*}}
|