summaryrefslogtreecommitdiff
path: root/test/CodeGen/lineno-dbginfo.c
blob: 5fe64ec3469bb4200bde1c73f7eaf82e58a58035 (plain)
1
2
3
4
5
6
7
8
9
// RUN: echo "#include <stddef.h>" > %t.h
// RUN: %clang_cc1 -S -debug-info-kind=limited -include %t.h %s -emit-llvm -o - | FileCheck %s

// CHECK: !DIGlobalVariable(name: "outer",
// CHECK-NOT:               linkageName:
// CHECK-SAME:              line: [[@LINE+2]]
// CHECK-SAME:              isDefinition: true
int outer = 42;