diff --git a/llvm/test/CodeGen/BPF/elf-symbol-information.ll b/llvm/test/CodeGen/BPF/elf-symbol-information.ll new file mode 100644 index 000000000000..37af7eddea51 --- /dev/null +++ b/llvm/test/CodeGen/BPF/elf-symbol-information.ll @@ -0,0 +1,8 @@ +; RUN: llc -march=bpfel -filetype=obj -o - %s | llvm-readelf --symbols | FileCheck %s + +; CHECK: 0 FILE LOCAL DEFAULT ABS elf-symbol-information.ll +; CHECK: 8 FUNC GLOBAL DEFAULT 2 test_func +define void @test_func() { +entry: + ret void +}