brintos

brintos / llvm-project-archived public Read only

0
0
Text · 798 B · 9f543db Raw
32 lines · plain
1// RUN: %clang_cc1 -Wno-error=return-type -triple x86_64-unknown-windows-gnu -fcxx-exceptions -fexceptions -debug-info-kind=line-tables-only -fblocks -emit-llvm %s -o - | FileCheck %s2// RUN: %clang_cc1 -Wno-error=return-type -triple x86_64-unknown-windows-gnu -fcxx-exceptions -fexceptions -debug-info-kind=line-directives-only -fblocks -emit-llvm %s -o - | FileCheck %s3 4void fn();5 6struct foo {7  ~foo();8};9 10void f1() {11  ^{12    foo f;13    fn();14    // CHECK: cleanup, !dbg [[DBG_F1:![0-9]*]]15#line 10016  }();17}18 19// CHECK-LABEL: define internal {{.*}}ptr @"\01-[TNSObject init]"20@implementation TNSObject21- (id)init22{23  foo f;24  fn();25  // CHECK: cleanup, !dbg [[DBG_TNSO:![0-9]*]]26#line 20027}28@end29 30// CHECK: [[DBG_F1]] = !DILocation(line: 100,31// CHECK: [[DBG_TNSO]] = !DILocation(line: 200,32