mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-19 19:29:31 +00:00
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32115 91177308-0d34-0410-b5e6-96231b3b80d8
19 lines
482 B
LLVM
19 lines
482 B
LLVM
; This is the same testcase as 2003-06-29-NodeCollapsing2.ll, but it uses the
|
|
; graph checker.
|
|
;
|
|
; RUN: llvm-upgrade < %s | llvm-as | 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
|
|
}
|