19 lines · plain
1Test that both llvm-dis (uses a data streamer) and opt (no data streamer)2handle a .bc file with any padding.3 4A file padded with '\n' can be produced under a peculiar situation:5 6* A .bc is produced os OS X, but without a darwin triple, so it has no7 wrapper.8* It is included in a .a archive9* ranlib is ran on that archive. It will pad the members to make them multiple10 of 8 bytes.11 12and there is no reason to not handle the general case.13 14RUN: llvm-dis -disable-output %p/Inputs/padding.bc15RUN: opt -disable-output %p/Inputs/padding.bc16 17RUN: llvm-dis -disable-output %p/Inputs/padding-garbage.bc18RUN: opt -disable-output %p/Inputs/padding-garbage.bc19