blob: 8ab66dc228eb20b18c759028e26c253a9b839872 [file] [log] [blame]
Davide Italiano63cee812015-09-11 20:47:35 +00001// 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
Simon Pilgrim8831f6e2018-02-22 18:06:48 +00007
8// CHECK: expected relocatable expression
9.int 2%0