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