mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-14 23:29:51 +00:00
Test case for forward declared global array with no size
llvm-svn: 5814
This commit is contained in:
parent
f53dee47b8
commit
37cc16c439
@ -0,0 +1,13 @@
|
||||
; 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"
|
||||
|
||||
void %test() {
|
||||
getelementptr [0 x ubyte]* %__popcount_tab, long 0, long 2
|
||||
getelementptr [4 x ubyte]* %__popcount_tab, long 0, long 2
|
||||
ret void
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user