summaryrefslogtreecommitdiffstats
path: root/llvm/test/Object/mri-addmod.test
blob: b8a41debc1dc1d23f5c21c7188dee33d1983f755 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
; RUN: echo create %t.a > %t.mri
; RUN: echo addmod %p/Inputs/trivial-object-test.elf-x86-64 >> %t.mri
; RUN: echo save >> %t.mri
; RUN: echo end >> %t.mri

; RUN: llvm-ar -M  < %t.mri
; RUN: llvm-nm -M %t.a | FileCheck %s

; CHECK:      Archive map
; CHECK-NEXT: main in trivial-object-test.elf-x86-64

; CHECK:      trivial-object-test.elf-x86-64:
; CHECK-NEXT:                  U SomeOtherFunction
; CHECK-NEXT: 0000000000000000 T main
; CHECK-NEXT:                  U puts

; line_iterator is incompatible to CRLF.
; REQUIRES: shell
OpenPOWER on IntegriCloud