1*9880d681SAndroid Build Coastguard Worker; Test for PR902. This program is erroneous, but should not crash llvm-as. 2*9880d681SAndroid Build Coastguard Worker; This tests that a simple error is caught and processed correctly. 3*9880d681SAndroid Build Coastguard Worker; RUN: not llvm-as < %s >/dev/null 2> %t 4*9880d681SAndroid Build Coastguard Worker; RUN: grep "floating point constant invalid for type" %t 5*9880d681SAndroid Build Coastguard Worker 6*9880d681SAndroid Build Coastguard Workerdefine void @test() { 7*9880d681SAndroid Build Coastguard Worker add i32 1, 2.0 8*9880d681SAndroid Build Coastguard Worker ret void 9*9880d681SAndroid Build Coastguard Worker} 10