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