Add support for addmod to mri scripts.
[oota-llvm.git] / test / Object / mri-addmod.test
1 ; RUN: echo create %t.a > %t.mri
2 ; RUN: echo addmod %p/Inputs/trivial-object-test.elf-x86-64 >> %t.mri
3 ; RUN: echo save >> %t.mri
4 ; RUN: echo end >> %t.mri
5
6 ; RUN: llvm-ar -M  < %t.mri
7 ; RUN: llvm-nm -M %t.a | FileCheck %s
8
9 ; CHECK:      Archive map
10 ; CHECK-NEXT: main in trivial-object-test.elf-x86-64
11
12 ; CHECK:      trivial-object-test.elf-x86-64:
13 ; CHECK-NEXT:                  U SomeOtherFunction
14 ; CHECK-NEXT: 0000000000000000 T main
15 ; CHECK-NEXT:                  U puts
16
17 ; line_iterator is incompatible to CRLF.
18 ; REQUIRES: shell