025ead093f96a897ed4700c09910076fccff3a8d
[oota-llvm.git] / test / Analysis / DSGraph / PhysicalSubtyping.ll
1 ; Test to check for support for "physical subtyping"
2 ;
3 ; RUN: llvm-upgrade < %s | llvm-as | opt -analyze -datastructure-gc -dsgc-abort-if-any-collapsed
4 ;
5 %S = type { int }
6 %T = type { int, float, double }
7
8 int %main() {
9         %A = alloca %S
10         %Ap = getelementptr %S* %A, long 0, uint 0
11         %B = alloca %T
12         %Bp = getelementptr %T* %B, long 0, uint 0
13         %C = alloca int*
14         
15         store int* %Ap, int** %C
16         store int* %Bp, int** %C
17         ret int 0
18 }