12 lines · c
1// RUN: %clang -g -target bpf -S -emit-llvm %s -o - | FileCheck %s2//3// No debug info is produced for unreferenced functions.4// CHECK-NOT: !DISubprogram5void unref(void);6void unref2(typeof(unref));7 8// No debug info for unused extern variables as well.9// CHECK-NOT: !DiGlobalVariable10extern int unused;11extern int unused2[sizeof(unused)];12