aboutsummaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/bpf-debug-info-unref.c
blob: 91f761ec3b77fbe32905ed1be732e59f6ccb52e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
// RUN: %clang -g -target bpf -S -emit-llvm %s -o - | FileCheck %s
//
// No debug info is produced for unreferenced functions.
// CHECK-NOT: !DISubprogram
void unref(void);
void unref2(typeof(unref));

// No debug info for unused extern variables as well.
// CHECK-NOT: !DiGlobalVariable
extern int unused;
extern int unused2[sizeof(unused)];