aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/debug-info-block-end.c
blob: 72e8868bb46c6e856a1e8c92cd06b07d71838d1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// RUN: %clang_cc1 -g -S -emit-llvm %s -o - | FileCheck %s

int bar();

int foo(int i) {
  int j = 0;
  if (i) {
    j = bar();
  }
  else {
    j = bar() + 2;
  }
  return j;
}

// Make sure we don't have a line table entry for a block with no cleanups.
// CHECK-NOT: i32 9, i32 3, metadata