2006-09-29 05:20:05 +08:00
|
|
|
; Test for PR902. This program is erroneous, but should not crash llvm-as.
|
|
|
|
; This tests that a simple error is caught and processed correctly.
|
2007-04-16 23:00:39 +08:00
|
|
|
; RUN: llvm-as < %s >/dev/null |& grep {FP constant invalid for type}
|
2007-01-26 16:25:06 +08:00
|
|
|
|
|
|
|
define void @test() {
|
|
|
|
add i32 1, 2.0
|
2006-09-29 05:20:05 +08:00
|
|
|
ret void
|
|
|
|
}
|