summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/debug-info-line4.c
blob: cbd2e83563a87d5ce77c46406ce04e8c0fd7b793 (plain)
1
2
3
4
5
6
7
8
9
10
11
// RUN: %clang %s -g -gcolumn-info -S -emit-llvm -o - | FileCheck %s
// Checks that clang emits column information when -gcolumn-info is passed.

int foo(int a, int b) { int c = a + b;


  return c;
}

// Without column information we wouldn't change locations for b.
// CHECK:  i32 4, i32 20,
OpenPOWER on IntegriCloud