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

Mostly, try to depend on the annotation comments more so these tests are more legible, brief, and agnostic to schema changes in the future (sure, they're not agnostic to changes to the comment annotations but since they're easier to read they should be easier to update if that happens). llvm-svn: 177457
22 lines
532 B
C++
22 lines
532 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 [[C_MEM:![0-9]*]], i32 0, null, null} ; [ DW_TAG_class_type ] [MyClass]
|
|
// CHECK: [[C_MEM]] = metadata !{metadata {{.*}}, metadata [[C_TEMP:![0-9]*]], metadata {{.*}}}
|
|
// CHECK: [[C_TEMP]] = {{.*}} ; [ DW_TAG_subprogram ] [line 11] [private] [add<2>]
|