From 55b915673065eaf11a88b8beba461fd17d197ef9 Mon Sep 17 00:00:00 2001 From: Yonghong Song Date: Sat, 22 Sep 2018 17:31:01 +0000 Subject: [PATCH] [bpf] Test case for symbol information in object file This patch tests the change introduced in r342556. Signed-off-by: Paul Chaignon llvm-svn: 342807 --- llvm/test/CodeGen/BPF/elf-symbol-information.ll | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 llvm/test/CodeGen/BPF/elf-symbol-information.ll 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 +}