1 // RUN: %clang -g -target bpf -S -emit-llvm %s -o - | FileCheck %s
3 // When linking BPF object files via bpftool, BTF info is required for
4 // every symbol. BTF is generated from debug info. Ensure that debug info
5 // is emitted for extern functions referenced via variable initializers.
7 // CHECK: !DISubprogram(name: "fn"
9 void (*pfn
) (void) = &fn
;