blob: 8b89eaab27e626002d463d5ab2da1af940b8f98f [file] [log] [blame]
Yonghong Songe3d8ee32019-11-22 08:45:37 -08001// RUN: %clang_cc1 -x c -debug-info-kind=limited -triple bpf-linux-gnu -emit-llvm %s -o - | FileCheck %s
2
3extern char ch;
4int test() {
5 return 0;
6}
7
8int test2() {
9 extern char ch2;
10 return 0;
11}
12
13extern int (*foo)(int);
14int test3() {
15 return 0;
16}
17
18int 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"