1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-27 22:12:47 +01:00
llvm-mirror/test/Regression/Transforms/FunctionResolve/2003-04-18-ForwardDeclGlobal.ll
Chris Lattner f7c7e93f4c Add testcase for constantexpr gep
llvm-svn: 5815
2003-04-19 00:15:00 +00:00

17 lines
487 B
LLVM

; RUN: if as < %s | opt -funcresolve -disable-output 2>&1 | grep WARNING
; RUN: then exit 1
; RUN: else exit 0
; RUN: fi
%__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
}