2003-06-28 23:23:34 +00:00
|
|
|
; RUN: as < %s | opt -funcresolve -disable-output 2>&1 | not grep WARNING
|
|
|
|
|
2003-04-18 23:46:44 +00:00
|
|
|
%__popcount_tab = external constant [0 x ubyte]
|
|
|
|
%__popcount_tab = constant [4 x ubyte] c"\00\01\01\02"
|
|
|
|
|
2003-04-19 00:15:00 +00:00
|
|
|
declare void %foo(ubyte *)
|
|
|
|
|
2003-04-18 23:46:44 +00:00
|
|
|
void %test() {
|
|
|
|
getelementptr [0 x ubyte]* %__popcount_tab, long 0, long 2
|
|
|
|
getelementptr [4 x ubyte]* %__popcount_tab, long 0, long 2
|
2003-04-19 00:15:00 +00:00
|
|
|
call void %foo(ubyte * getelementptr ([0 x ubyte]* %__popcount_tab, long 0, long 2))
|
2003-04-18 23:46:44 +00:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|