summaryrefslogtreecommitdiffstats
path: root/test/Assembler/2006-09-28-CrashOnInvalid.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Assembler/2006-09-28-CrashOnInvalid.ll')
-rw-r--r--test/Assembler/2006-09-28-CrashOnInvalid.ll7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/Assembler/2006-09-28-CrashOnInvalid.ll b/test/Assembler/2006-09-28-CrashOnInvalid.ll
index 1f67c9c..1691b3c 100644
--- a/test/Assembler/2006-09-28-CrashOnInvalid.ll
+++ b/test/Assembler/2006-09-28-CrashOnInvalid.ll
@@ -1,7 +1,8 @@
; Test for PR902. This program is erroneous, but should not crash llvm-as.
; This tests that a simple error is caught and processed correctly.
-; RUN: llvm-upgrade < %s | llvm-as 2>&1 | grep 'FP constant invalid for type'
-void %test() {
- add int 1, 2.0
+; RUN: llvm-as < %s 2>&1 >/dev/null | grep 'FP constant invalid for type'
+
+define void @test() {
+ add i32 1, 2.0
ret void
}