From a7f82d3210de194f95fcad9aed3f891a7a641cd6 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Fri, 5 Jan 2007 17:37:59 +0000 Subject: [PATCH] Fix this to check for the correct error message. llvm-svn: 32915 --- test/Regression/Assembler/2004-11-28-InvalidTypeCrash.ll | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/Regression/Assembler/2004-11-28-InvalidTypeCrash.ll b/test/Regression/Assembler/2004-11-28-InvalidTypeCrash.ll index b6b03c828cc..d0ecd9102ad 100644 --- a/test/Regression/Assembler/2004-11-28-InvalidTypeCrash.ll +++ b/test/Regression/Assembler/2004-11-28-InvalidTypeCrash.ll @@ -1,3 +1,4 @@ -; RUN: (llvm-upgrade < %s | llvm-as -o /dev/null -f) 2>&1 | grep 'Cannot resolve type' +; RUN: (llvm-upgrade < %s | llvm-as -o /dev/null -f) 2>&1 | \ +; RUN: grep 'Cannot create a null initialized value of this type!' ; Test for PR463. This program is erroneous, but should not crash llvm-as. %.FOO = internal global %struct.none zeroinitializer