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