1 // RUN: %clang_cc1 -fcxx-exceptions -fexceptions -debug-info-kind=line-tables-only -fblocks -emit-llvm %s -o - | FileCheck %s 2 3 void fn(); 4 5 struct foo { 6 ~foo(); 7 }; 8 9 void f1() { 10 ^{ 11 foo f; 12 fn(); 13 // CHECK: cleanup, !dbg [[DBG_F1:![0-9]*]] 14 #line 100 15 }(); 16 } 17 18 // CHECK-LABEL: define internal {{.*}}i8* @"\01-[TNSObject init]" 19 @implementation TNSObject 20 - (id)init 21 { 22 foo f; 23 fn(); 24 // CHECK: cleanup, !dbg [[DBG_TNSO:![0-9]*]] 25 #line 200 26 } 27 @end 28 29 // CHECK: [[DBG_F1]] = !DILocation(line: 100, 30 // CHECK: [[DBG_TNSO]] = !DILocation(line: 200, 31