blob: f77ea5c427ead43908027dd9752af967bba7d8a7 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; 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.
Tanya Lattner8b074702007-11-28 04:57:00 +00003; RUN: not llvm-as < %s >/dev/null |& grep {FP constant invalid for type}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004
5define void @test() {
6 add i32 1, 2.0
7 ret void
8}