diff --git a/llvm/test/tools/llvm-mc/line_end_with_space.test b/llvm/test/tools/llvm-mc/line_end_with_space.test --- a/llvm/test/tools/llvm-mc/line_end_with_space.test +++ b/llvm/test/tools/llvm-mc/line_end_with_space.test @@ -1 +1,3 @@ -RUN: llvm-mc -disassemble %s +# Test that llvm-mc doesn't crash when disassembling a line that ends with a +# space. +RUN: echo -n ' ' | llvm-mc -disassemble