Add testcase for reason that typesafety of power is being broken
llvm-svn: 6836
This commit is contained in:
parent
364e631d49
commit
a103d76cbe
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue