diff options
Diffstat (limited to 'test/MC/ELF/div-by-zero.s')
-rw-r--r-- | test/MC/ELF/div-by-zero.s | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/MC/ELF/div-by-zero.s b/test/MC/ELF/div-by-zero.s new file mode 100644 index 000000000000..8c7f77346551 --- /dev/null +++ b/test/MC/ELF/div-by-zero.s @@ -0,0 +1,6 @@ +// Check that llvm-mc doesn't crash on division by zero. +// RUN: not llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s 2> %t +// RUN: FileCheck -input-file %t %s + +// CHECK: expected relocatable expression +.int 1/0 |