2015-10-08 12:24:12 +08:00
|
|
|
// RUN: %clang_cc1 %s -debug-info-kind=line-tables-only -S -emit-llvm -o - | FileCheck %s
|
2012-05-04 15:39:27 +08:00
|
|
|
// Checks that clang with "-gline-tables-only" emits metadata for
|
|
|
|
// compile unit, subprogram and file.
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
// CHECK: ret i32 0, !dbg
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// CHECK: !llvm.dbg.cu = !{!0}
|
2015-04-30 00:40:08 +08:00
|
|
|
// CHECK: !DICompileUnit(
|
|
|
|
// CHECK: !DISubprogram(
|
|
|
|
// CHECK: !DIFile(
|