2003-06-29 22:35:55 +00:00
|
|
|
; Test to check for support for "physical subtyping"
|
|
|
|
;
|
2006-12-02 04:23:10 +00:00
|
|
|
; RUN: llvm-upgrade < %s | llvm-as | opt -analyze -datastructure-gc -dsgc-abort-if-any-collapsed
|
2003-06-29 22:35:55 +00:00
|
|
|
;
|
|
|
|
%S = type { int }
|
|
|
|
%T = type { int, float, double }
|
|
|
|
|
|
|
|
int %main() {
|
|
|
|
%A = alloca %S
|
2006-11-23 15:14:52 +00:00
|
|
|
%Ap = getelementptr %S* %A, long 0, uint 0
|
2003-06-29 22:35:55 +00:00
|
|
|
%B = alloca %T
|
2006-11-23 15:14:52 +00:00
|
|
|
%Bp = getelementptr %T* %B, long 0, uint 0
|
2003-06-29 22:35:55 +00:00
|
|
|
%C = alloca int*
|
|
|
|
|
|
|
|
store int* %Ap, int** %C
|
|
|
|
store int* %Bp, int** %C
|
|
|
|
ret int 0
|
|
|
|
}
|