blob: 331501adb3e07a2bd45c7c4bb1752561c98a0b04 [file] [log] [blame]
Chris Lattner37c4d692002-05-03 20:25:40 +00001; Make sure that the constant propogator doesn't divide by zero!
2;
Reid Spencerd0e30dc2006-12-02 04:23:10 +00003; RUN: llvm-upgrade < %s | llvm-as | opt -constprop
Chris Lattner37c4d692002-05-03 20:25:40 +00004;
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}