mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-19 19:45:40 -04:00

Commitd77ae1552f
("[DebugInfo] Support to emit debugInfo for extern variables") added deebugInfo for extern variables for BPF target. The commit is reverted by891e25b02d
as the committed tests using %clang instead of %clang_cc1 causing test failed in certain scenarios as reported by Reid Kleckner. This patch fixed the tests by using %clang_cc1. Differential Revision: https://reviews.llvm.org/D71818
27 lines
519 B
C
27 lines
519 B
C
// 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"
|