view clang/test/CodeGen/debug-info-line.c @ 207:2e18cbf3894f

LLVM12
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 08 Jun 2021 06:07:14 +0900
parents 1d019706d866
children
line wrap: on
line source

// RUN: %clang_cc1 -w -debug-info-kind=line-tables-only -fexceptions -fcxx-exceptions -S -emit-llvm %s -o - | FileCheck %s
// RUN: %clang_cc1 -w -debug-info-kind=line-directives-only -fexceptions -fcxx-exceptions -S -emit-llvm %s -o - | FileCheck %s

int f1(int a, int b) {
  // CHECK: icmp {{.*}}, !dbg [[DBG_F1:!.*]]
#line 100
  return a  //
         && //
         b;
}

// CHECK: [[DBG_F1]] = !DILocation(line: 100,