summaryrefslogtreecommitdiff
path: root/test/Analysis/DSGraph/2003-06-29-NodeCollapsing2.ll
blob: 93260e821e4a8d6e582cfe32d074b4fb4252ed3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
; 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
;
%T = type { int}

int %main() {
	%A = alloca %T
	%B = alloca { %T }
	%C = alloca %T*
	%Bp = getelementptr { %T }* %B, long 0, uint 0
	%Ap = getelementptr %T* %A, long 0, uint 0

	store %T* %A, %T** %C
	store %T* %Bp, %T** %C    ; This store was causing merging to happen!
	ret int 0
}