2015-10-08 12:24:12 +08:00
|
|
|
// RUN: %clang_cc1 -w -debug-info-kind=line-tables-only -fexceptions -fcxx-exceptions -S -emit-llvm %s -o - | FileCheck %s
|
2018-08-31 21:56:14 +08:00
|
|
|
// RUN: %clang_cc1 -w -debug-info-kind=line-directives-only -fexceptions -fcxx-exceptions -S -emit-llvm %s -o - | FileCheck %s
|
2015-01-31 09:10:11 +08:00
|
|
|
|
|
|
|
int f1(int a, int b) {
|
|
|
|
// CHECK: icmp {{.*}}, !dbg [[DBG_F1:!.*]]
|
|
|
|
#line 100
|
|
|
|
return a //
|
|
|
|
&& //
|
|
|
|
b;
|
|
|
|
}
|
|
|
|
|
2015-04-30 00:40:08 +08:00
|
|
|
// CHECK: [[DBG_F1]] = !DILocation(line: 100,
|