From 5199e1691d16a05fc5188a8364802670098adca4 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 9 Oct 2002 20:55:32 +0000 Subject: [PATCH] Add check to see if opt aborts git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4098 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../FunctionResolve/2002-08-19-ResolveGlobalVars.ll | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/Transforms/FunctionResolve/2002-08-19-ResolveGlobalVars.ll b/test/Transforms/FunctionResolve/2002-08-19-ResolveGlobalVars.ll index 0da78ee9d0c..259ed56c0f4 100644 --- a/test/Transforms/FunctionResolve/2002-08-19-ResolveGlobalVars.ll +++ b/test/Transforms/FunctionResolve/2002-08-19-ResolveGlobalVars.ll @@ -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 -- 2.34.1