[bpf] Test case for symbol information in object file

This patch tests the change introduced in r342556.

Signed-off-by: Paul Chaignon <paul.chaignon@orange.com>
llvm-svn: 342807
This commit is contained in:
Yonghong Song 2018-09-22 17:31:01 +00:00
parent 09e02fbf51
commit 55b9156730
1 changed files with 8 additions and 0 deletions

View File

@ -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
}