blob: 846a3cb1e8818a44dc20cbf148346429dccf361c [file] [log] [blame]
Chris Lattnerdab02ae2003-11-02 20:43:10 +00001; This is the same testcase as 2003-06-29-NodeCollapsing2.ll, but it uses the
2; graph checker.
3;
Chris Lattnerd52e1b02006-08-27 22:47:14 +00004; RUN: llvm-as < %s | opt -analyze -datastructure-gc -dsgc-abort-if-any-collapsed
Chris Lattnerdab02ae2003-11-02 20:43:10 +00005;
6
7%S = type { double, int }
8%T = type { double, int, sbyte }
9
10void %test() {
11 %A = alloca double*
12 %B = alloca %S
13 %C = alloca %T
14 %b = getelementptr %S* %B, long 0, ubyte 0
15 %c = getelementptr %T* %C, long 0, ubyte 0
16
17 store double* %b, double** %A
18 store double* %c, double** %A
19 ret void
20}