xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGen/debug-info-line4.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // RUN: %clang %s -g -gcolumn-info -S -emit-llvm -o - | FileCheck %s
2*f4a2713aSLionel Sambuc // Checks that clang emits column information when -gcolumn-info is passed.
3*f4a2713aSLionel Sambuc 
4*f4a2713aSLionel Sambuc int foo(int a, int b) { int c = a + b;
5*f4a2713aSLionel Sambuc 
6*f4a2713aSLionel Sambuc 
7*f4a2713aSLionel Sambuc   return c;
8*f4a2713aSLionel Sambuc }
9*f4a2713aSLionel Sambuc 
10*f4a2713aSLionel Sambuc // Without column information we wouldn't change locations for b.
11*f4a2713aSLionel Sambuc // CHECK: metadata !{i32 4, i32 20,
12