[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGen / debug-info-extern-unused.c
blob52b3b1b91f79fd99744b4c11b882678037f8d30e
1 // RUN: %clang_cc1 -x c -debug-info-kind=limited -triple bpf-linux-gnu -emit-llvm %s -o - | FileCheck %s
3 extern char ch;
4 int test(void) {
5 return 0;
8 int test2(void) {
9 extern char ch2;
10 return 0;
13 extern int (*foo)(int);
14 int test3(void) {
15 return 0;
18 int test4(void) {
19 extern int (*foo2)(int);
20 return 0;
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"