Add testcase for reason that typesafety of power is being broken

llvm-svn: 6836
This commit is contained in:
Chris Lattner 2003-06-21 22:59:39 +00:00
parent 364e631d49
commit a103d76cbe
1 changed files with 6 additions and 0 deletions

View File

@ -48,3 +48,9 @@ int* %foo7(int* %I, long %C, long %D) {
%B = getelementptr int* %A, long %D %B = getelementptr int* %A, long %D
ret int* %B 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
}