xref: /llvm-project/llvm/test/MC/ELF/div-by-zero.s (revision 8831f6e57d3ae3900ffea269aabe468ba48e87c8)
1// Check that llvm-mc doesn't crash on division by zero.
2// RUN: not llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s 2> %t
3// RUN: FileCheck -input-file %t %s
4
5// CHECK: expected relocatable expression
6.int 1/0
7
8// CHECK: expected relocatable expression
9.int 2%0
10