blob: 6041bdf4797b9e20ce871ee39a757d5f62293ae1 [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.
Chandler Carruth563add92012-07-02 12:23:19 +00003; RUN: not llvm-as < %s >/dev/null 2> %t
4; RUN: grep "floating point constant invalid for type" %t
Reid Spencere3ff5ad2007-01-26 08:25:06 +00005
6define void @test() {
7 add i32 1, 2.0
Reid Spencer8a4d4302006-09-28 21:20:05 +00008 ret void
9}