llvm-6502/test/Analysis/DSGraph/2003-11-02-NodeCollapsing.ll
Reid Spencer e5d4efa63e 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.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31896 91177308-0d34-0410-b5e6-96231b3b80d8
2006-11-23 15:14:52 +00:00

21 lines
472 B
LLVM

; This is the same testcase as 2003-06-29-NodeCollapsing2.ll, but it uses the
; graph checker.
;
; RUN: llvm-as < %s | opt -analyze -datastructure-gc -dsgc-abort-if-any-collapsed
;
%S = type { double, int }
%T = type { double, int, sbyte }
void %test() {
%A = alloca double*
%B = alloca %S
%C = alloca %T
%b = getelementptr %S* %B, long 0, uint 0
%c = getelementptr %T* %C, long 0, uint 0
store double* %b, double** %A
store double* %c, double** %A
ret void
}