From 9f755bd4ddc1554f7a357e7e7b67e163087f3b92 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 19 Apr 2003 00:15:00 +0000 Subject: [PATCH] Add testcase for constantexpr gep git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5815 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../Transforms/FunctionResolve/2003-04-18-ForwardDeclGlobal.ll | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/Transforms/FunctionResolve/2003-04-18-ForwardDeclGlobal.ll b/test/Transforms/FunctionResolve/2003-04-18-ForwardDeclGlobal.ll index 6d71f665829..fd25eae9038 100644 --- a/test/Transforms/FunctionResolve/2003-04-18-ForwardDeclGlobal.ll +++ b/test/Transforms/FunctionResolve/2003-04-18-ForwardDeclGlobal.ll @@ -5,9 +5,12 @@ %__popcount_tab = external constant [0 x ubyte] %__popcount_tab = constant [4 x ubyte] c"\00\01\01\02" +declare void %foo(ubyte *) + void %test() { getelementptr [0 x ubyte]* %__popcount_tab, long 0, long 2 getelementptr [4 x ubyte]* %__popcount_tab, long 0, long 2 + call void %foo(ubyte * getelementptr ([0 x ubyte]* %__popcount_tab, long 0, long 2)) ret void } -- 2.34.1