1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-30 07:22:55 +01:00
llvm-mirror/test/Regression/Transforms/FunctionResolve/2003-10-21-GlobalResolveHack.ll
Reid Spencer 43e145ce25 Promote GEP ubyte indices to uint. Backwards compatibility for 1.2 and
older features will be dropped soon and these test cases must not rely
on the upgrade capability.

llvm-svn: 31896
2006-11-23 15:14:52 +00:00

15 lines
386 B
LLVM

; This tests a hack put into place specifically for the C++ libstdc++ library.
; It uses an ugly hack which is cleaned up by the funcresolve pass.
; RUN: llvm-as < %s | opt -funcresolve | llvm-dis | grep %X | grep '{'
%X = external global { int }
%X = global [ 4 x sbyte ] zeroinitializer
implementation
int* %test() {
%P = getelementptr {int}* %X, long 0, uint 0
ret int* %P
}