blob: f77ea5c427ead43908027dd9752af967bba7d8a7 [file] [log] [blame]
Reid Spencer8a4d4302006-09-28 21:20:05 +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 Lattner727842e2007-11-28 04:57:00 +00003; RUN: not llvm-as < %s >/dev/null |& grep {FP constant invalid for type}
Reid Spencere3ff5ad2007-01-26 08:25:06 +00004
5define void @test() {
6 add i32 1, 2.0
Reid Spencer8a4d4302006-09-28 21:20:05 +00007 ret void
8}