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