2003-11-02 20:43:10 +00:00
|
|
|
; This is the same testcase as 2003-06-29-NodeCollapsing2.ll, but it uses the
|
|
|
|
; graph checker.
|
|
|
|
;
|
2006-08-27 22:47:14 +00:00
|
|
|
; RUN: llvm-as < %s | opt -analyze -datastructure-gc -dsgc-abort-if-any-collapsed
|
2003-11-02 20:43:10 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
%S = type { double, int }
|
|
|
|
%T = type { double, int, sbyte }
|
|
|
|
|
|
|
|
void %test() {
|
|
|
|
%A = alloca double*
|
|
|
|
%B = alloca %S
|
|
|
|
%C = alloca %T
|
2006-11-23 15:14:52 +00:00
|
|
|
%b = getelementptr %S* %B, long 0, uint 0
|
|
|
|
%c = getelementptr %T* %C, long 0, uint 0
|
2003-11-02 20:43:10 +00:00
|
|
|
|
|
|
|
store double* %b, double** %A
|
|
|
|
store double* %c, double** %A
|
|
|
|
ret void
|
|
|
|
}
|