xref: /llvm-project/clang/test/CodeGen/debug-info-line.c (revision c5de4dd1eab00df76c1a68c5f397304ceacb71f2)
1 // RUN: %clang_cc1 -w -debug-info-kind=line-tables-only -fexceptions -fcxx-exceptions -emit-llvm %s -o - | FileCheck %s
2 // RUN: %clang_cc1 -w -debug-info-kind=line-directives-only -fexceptions -fcxx-exceptions -emit-llvm %s -o - | FileCheck %s
3 
f1(int a,int b)4 int f1(int a, int b) {
5   // CHECK: icmp {{.*}}, !dbg [[DBG_F1:!.*]]
6 #line 100
7   return a  //
8          && //
9          b;
10 }
11 
12 // CHECK: [[DBG_F1]] = !DILocation(line: 100,
13