You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
519 B
27 lines
519 B
7 months ago
|
// RUN: %clang_cc1 -x c -debug-info-kind=limited -triple bpf-linux-gnu -emit-llvm %s -o - | FileCheck %s
|
||
|
|
||
|
extern char ch;
|
||
|
int test() {
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
int test2() {
|
||
|
extern char ch2;
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
extern int (*foo)(int);
|
||
|
int test3() {
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
int test4() {
|
||
|
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"
|