Yonghong Song | e3d8ee3 | 2019-11-22 08:45:37 -0800 | [diff] [blame] | 1 | // RUN: %clang_cc1 -x c -debug-info-kind=limited -triple bpf-linux-gnu -emit-llvm %s -o - | FileCheck %s |
| 2 | |
| 3 | extern char ch; |
| 4 | int test() { |
| 5 | return 0; |
| 6 | } |
| 7 | |
| 8 | int test2() { |
| 9 | extern char ch2; |
| 10 | return 0; |
| 11 | } |
| 12 | |
| 13 | extern int (*foo)(int); |
| 14 | int test3() { |
| 15 | return 0; |
| 16 | } |
| 17 | |
| 18 | int test4() { |
| 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" |