blob: a203c6ad034d920b9230141f1ae552b9d92ac4c8 [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.
Chris Lattnerdf986172009-01-02 07:01:27 +00003; RUN: not llvm-as < %s >/dev/null |& grep {floating point 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}