Home | History | Annotate | Download | only in CodeGen
      1 // RUN: %clang_cc1 -O1 -triple x86_64-none-linux-gnu -emit-llvm -debug-info-kind=line-tables-only %s -o - | FileCheck %s
      2 
      3 // Inserting lifetime markers should not affect debuginfo
      4 
      5 extern int x;
      6 
      7 // CHECK-LABEL: define i32 @f
      8 int f() {
      9   int *p = &x;
     10 // CHECK: ret i32 %{{.*}}, !dbg [[DI:![0-9]*]]
     11 // CHECK: [[DI]] = !DILocation(line: [[@LINE+1]]
     12   return *p;
     13 }
     14