Add testcase for reason that typesafety of power is being broken

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6836 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-06-21 22:59:39 +00:00
parent edf351f44e
commit 1474b47600

View File

@ -48,3 +48,9 @@ int* %foo7(int* %I, long %C, long %D) {
%B = getelementptr int* %A, long %D
ret int* %B
}
sbyte* %foo8([10 x int]* %X) {
%A = getelementptr [10 x int]* %X, long 0, long 0 ;; Fold into the cast.
%B = cast int* %A to sbyte*
ret sbyte * %B
}