mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-27 14:34:58 +00:00
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:
parent
edf351f44e
commit
1474b47600
@ -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…
x
Reference in New Issue
Block a user