blob: 331501adb3e07a2bd45c7c4bb1752561c98a0b04 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; Make sure that the constant propogator doesn't divide by zero!
2;
3; RUN: llvm-upgrade < %s | llvm-as | opt -constprop
4;
5
6int "test"() {
7 %R = div int 12, 0
8 ret int %R
9}
10
11int "test2"() {
12 %R = rem int 12, 0
13 ret int %R
14}