summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/ELF/div-by-zero.s
blob: 8ab66dc228eb20b18c759028e26c253a9b839872 (plain)
1
2
3
4
5
6
7
8
9
// 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

// CHECK: expected relocatable expression
.int 2%0
OpenPOWER on IntegriCloud