72fe42ea47e6c94048d7e694bf4bdae916fb6570
[oota-llvm.git] / test / Bitcode / padding.test
1 Test that both llvm-dis (uses a data streamer) and opt (no data streamer)
2 handle a .bc file padded with '\n' at the end.
3
4 This files can be produced under a peculiar situation:
5
6 * A .bc is produced os OS X, but without a darwin triple, so it has no
7   wrapper.
8 * It is included in a .a archive
9 * ranlib is ran on that archive. It will pad the members to make them multiple
10   of 8 bytes.
11
12 RUN: llvm-dis -disable-output %p/Inputs/padding.bc
13 RUN: opt -disable-output %p/Inputs/padding.bc