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. | ||||
3 | ; RUN: (llvm-as < %s) 2>&1 | grep 'FP constant invalid for type' | ||||
4 | void %test() { | ||||
5 | add int 1, 2.0 | ||||
6 | ret void | ||||
7 | } |