mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-27 17:31:33 +00:00
Add a test for the new null keyword
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@669 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1a1cb111fe
commit
6b12936ac3
@ -10,14 +10,20 @@ begin
|
|||||||
ret [[2x int]]* %array
|
ret [[2x int]]* %array
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
[sbyte]* "other func"(int, double)
|
[sbyte]* "other func"(int, double)
|
||||||
begin
|
begin
|
||||||
ret [sbyte]* %somestr
|
ret [sbyte]* %somestr
|
||||||
end
|
end
|
||||||
|
|
||||||
|
[sbyte]* "yet another func"(int, double)
|
||||||
|
begin
|
||||||
|
ret [sbyte]* null ; Test null
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
[sbyte]* "again"(float)
|
[sbyte]* "again"(float)
|
||||||
begin
|
begin
|
||||||
%cast = cast [11x sbyte]* %somestr to [sbyte]*
|
%cast = cast [11x sbyte]* %somestr to [sbyte]*
|
||||||
ret [sbyte]* %cast
|
ret [sbyte]* %cast
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user