summaryrefslogtreecommitdiff
path: root/test/CodeGen/lineno-dbginfo.c
blob: ac61c8364949459aa4b13983a84e27cf74b7a1c3 (plain)
1
2
3
4
5
6
7
8
9
// RUN: echo "#include <stddef.h>" > %t.h
// RUN: %clang_cc1 -S -g -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;