Add check to see if opt aborts
authorChris Lattner <sabre@nondot.org>
Wed, 9 Oct 2002 20:55:32 +0000 (20:55 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 9 Oct 2002 20:55:32 +0000 (20:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4098 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/FunctionResolve/2002-08-19-ResolveGlobalVars.ll

index 0da78ee9d0c0caa5c7678bd9a09ebea0a14bb997..259ed56c0f4eeb85d36e63a20ecc084922df7d85 100644 (file)
@@ -1,6 +1,11 @@
 ; Test that: extern int X[]  and int X[] = { 1, 2, 3, 4 } are resolved 
 ; correctly.
 ;
+; RUN: if as < %s | opt -funcresolve > /dev/null
+; RUN: then echo "opt ok"
+; RUN: else exit 1   # Make sure opt doesn't abort!
+; RUN: fi
+;
 ; RUN: if as < %s | opt -funcresolve | dis | grep external
 ; RUN: then exit 1
 ; RUN: else exit 0