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. |
Chris Lattner | df98617 | 2009-01-02 07:01:27 +0000 | [diff] [blame] | 3 | ; RUN: not llvm-as < %s >/dev/null |& grep {floating point constant invalid for type} |
Reid Spencer | e3ff5ad | 2007-01-26 08:25:06 +0000 | [diff] [blame] | 4 | |
| 5 | define void @test() { |
| 6 | add i32 1, 2.0 |
Reid Spencer | 8a4d430 | 2006-09-28 21:20:05 +0000 | [diff] [blame] | 7 | ret void |
| 8 | } |