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()4 int test() {
5   return 0;
6 }
7 
test2()8 int test2() {
9   extern char ch2;
10   return 0;
11 }
12 
13 extern int (*foo)(int);
test3()14 int test3() {
15   return 0;
16 }
17 
test4()18 int test4() {
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