[MemProf] Skip unmatched callers when cloning (#120455)
[llvm-project.git] / clang / test / CodeGen / bpf-debug-info-extern-func.c
blobe87c8bea3a878c35d82bdf055385be99940fd7e4
1 // RUN: %clang -g -target bpf -S -emit-llvm %s -o - | FileCheck %s
2 //
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.
6 //
7 // CHECK: !DISubprogram(name: "fn"
8 extern void fn(void);
9 void (*pfn) (void) = &fn;