brintos

brintos / llvm-project-archived public Read only

0
0
Text · 535 B · 52b3b1b Raw
27 lines · c
1// RUN: %clang_cc1 -x c -debug-info-kind=limited -triple bpf-linux-gnu -emit-llvm %s -o - | FileCheck %s2 3extern char ch;4int test(void) {5  return 0;6}7 8int test2(void) {9  extern char ch2;10  return 0;11}12 13extern int (*foo)(int);14int test3(void) {15  return 0;16}17 18int test4(void) {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"27