blob: 909585cddf159bd0e722637e8b3049e27f1dcef3 [file] [log] [blame]
Reid Spencer69ccadd2006-12-02 04:23:10 +00001; RUN: llvm-upgrade < %s | llvm-as | llvm-dis | not grep cast
Chris Lattner3c6d4b42004-03-08 06:17:15 +00002; All of these should be eliminable
3
4
5int %foo() {
6 ret int and (int cast (int()* %foo to int), int 1)
7}
8
9int %foo2() {
10 ret int and (int 1, int cast (int()* %foo2 to int))
11}
12
13bool %foo3() {
14 ret bool cast (bool()* %foo3 to bool)
15}