padding.test 656 B

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