1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-28 22:42:52 +01:00
llvm-mirror/test/Regression/Transforms/DSAnalysis/goodcases.ll
John Criswell 8a261626fc Changed all of these tests to be TestRunner tests (or, at least they can be
TestRunner tests).
This makes creating the new test database class easier to implement.

llvm-svn: 8841
2003-10-03 18:42:25 +00:00

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
}