blob: ddfd7d10c4213cb75992f989fc841f6cd42eed7a [file] [log] [blame]
Chris Lattner8a2e64c2002-05-03 20:25:40 +00001; Make sure that the constant propogator doesn't divide by zero!
2;
3; RUN: as < %s | 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}