Home | History | Annotate | Download | only in CodeGenCXX
      1 // RUN: %clang_cc1 -emit-llvm -g -triple x86_64-apple-darwin %s -o - | FileCheck %s
      2 
      3 class MyClass
      4 {
      5 public:
      6     int add2(int j)
      7     {
      8         return add<2>(j);
      9     }
     10 private:
     11     template <int i> int add(int j)
     12     {
     13         return i + j;
     14     }
     15 };
     16 
     17 MyClass 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