For PR411:
[oota-llvm.git] / test / Transforms / FunctionResolve / 2003-04-18-ForwardDeclGlobal.ll
1 ; RUN: llvm-upgrade < %s | llvm-as | opt -funcresolve -disable-output 2>&1 | not grep WARNING
2
3 %__popcount_tab = external constant [0 x ubyte]
4 %__popcount_tab = constant [4 x ubyte] c"\00\01\01\02"
5
6 declare void %foo(ubyte *)
7
8 void %test() {
9         getelementptr [0 x ubyte]* %__popcount_tab, long 0, long 2
10         getelementptr [4 x ubyte]* %__popcount_tab, long 0, long 2
11         call void %foo(ubyte * getelementptr ([0 x ubyte]* %__popcount_tab, long 0, long 2))
12         ret void
13 }
14