llvm-6502/test/Analysis/DSGraph/PhysicalSubtyping.ll
2006-12-02 04:23:10 +00:00

19 lines
425 B
LLVM

; Test to check for support for "physical subtyping"
;
; RUN: llvm-upgrade < %s | llvm-as | opt -analyze -datastructure-gc -dsgc-abort-if-any-collapsed
;
%S = type { int }
%T = type { int, float, double }
int %main() {
%A = alloca %S
%Ap = getelementptr %S* %A, long 0, uint 0
%B = alloca %T
%Bp = getelementptr %T* %B, long 0, uint 0
%C = alloca int*
store int* %Ap, int** %C
store int* %Bp, int** %C
ret int 0
}