| // RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited %s -o - | FileCheck %s |
| // Test that the line table info for Foo<T>::bar() is pointing to the |
| // CHECK: define{{.*}}bar |
| // CHECK: ret {{.*}}, !dbg [[DBG:.*]] |
| // CHECK: [[HPP:.*]] = !DIFile(filename: "./template.hpp", |
| // CHECK: [[SP:.*]] = distinct !DISubprogram(name: "bar", |
| // CHECK-SAME: file: [[HPP]], line: 22 |
| // CHECK-SAME: isDefinition: true |
| // We shouldn't need a lexical block for this function. |
| // CHECK: [[DBG]] = !DILocation(line: 23, scope: [[SP]]) |
| int main (int argc, const char * argv[]) |