Reid Spencer | 8a4d430 | 2006-09-28 21:20:05 +0000 | [diff] [blame] | 1 | ; Test for PR902. This program is erroneous, but should not crash llvm-as. |
2 | ; This tests that a simple error is caught and processed correctly. | ||||
Reid Spencer | d7c2c2f | 2006-12-02 20:34:08 +0000 | [diff] [blame] | 3 | ; RUN: llvm-upgrade < %s | llvm-as 2>&1 | grep 'FP constant invalid for type' |
Reid Spencer | 8a4d430 | 2006-09-28 21:20:05 +0000 | [diff] [blame] | 4 | void %test() { |
5 | add int 1, 2.0 | ||||
6 | ret void | ||||
7 | } |