mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-22 07:32:48 +00:00
4797826e17
TestRunner tests). This makes creating the new test database class easier to implement. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8841 91177308-0d34-0410-b5e6-96231b3b80d8
24 lines
557 B
LLVM
24 lines
557 B
LLVM
; This file contains a list of cases where node folding should NOT happen
|
|
;
|
|
; RUN: analyze %s -tddatastructure
|
|
;
|
|
|
|
implementation
|
|
|
|
void %test1({int, int}* %X) {
|
|
getelementptr {int, int} * %X, long 0
|
|
%Y = cast {int, int}* %X to uint*
|
|
store uint 5, uint* %Y
|
|
ret void
|
|
}
|
|
|
|
; Test that "structural" equality works. Pointers can land in pointers n
|
|
; stuff.
|
|
void %test2({int*, int*}* %X) {
|
|
getelementptr {int*, int*}* %X, long 0
|
|
%Y = cast {int*, int*}* %X to {uint*, long*}*
|
|
getelementptr {uint*, long*}* %Y, long 0
|
|
ret void
|
|
}
|
|
|