blob: 1691b3c4c505c99ce7f472aad7e52ee4595f665f [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.
Reid Spencere3ff5ad2007-01-26 08:25:06 +00003; RUN: llvm-as < %s 2>&1 >/dev/null | grep 'FP constant invalid for type'
4
5define void @test() {
6 add i32 1, 2.0
Reid Spencer8a4d4302006-09-28 21:20:05 +00007 ret void
8}