summaryrefslogtreecommitdiff
path: root/test/Analysis/DSGraph/2003-11-02-NodeCollapsing.ll
blob: c082b61ea4521303e3bff4dd940042a259bee79a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
; This is the same testcase as 2003-06-29-NodeCollapsing2.ll, but it uses the 
; graph checker.
;
; RUN: llvm-upgrade < %s | llvm-as | 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
}