1 // RUN: %clang_cc1 -x c -debug-info-kind=limited -triple bpf-linux-gnu -emit-llvm %s -o - | FileCheck %s
2
3 extern char ch;
test(void)4 int test(void) {
5 return 0;
6 }
7
test2(void)8 int test2(void) {
9 extern char ch2;
10 return 0;
11 }
12
13 extern int (*foo)(int);
test3(void)14 int test3(void) {
15 return 0;
16 }
17
test4(void)18 int test4(void) {
19 extern int (*foo2)(int);
20 return 0;
21 }
22
23 // CHECK-NOT: distinct !DIGlobalVariable(name: "ch"
24 // CHECK-NOT: distinct !DIGlobalVariable(name: "ch2"
25 // CHECK-NOT: distinct !DIGlobalVariable(name: "foo"
26 // CHECK-NOT: distinct !DIGlobalVariable(name: "foo2"
27