Added stringify tests and $typefrom. Bump to 0.3.50.

This commit is contained in:
Christoffer Lerno
2022-09-18 20:28:03 +02:00
committed by Christoffer Lerno
parent 62e3b8063e
commit e7fad16d0f
14 changed files with 137 additions and 8 deletions

View File

@@ -0,0 +1,20 @@
// #target: macos-x64
module test;
import std::io;
fn void main()
{
var $s1 = $stringify(1 + 2);
char[*] s2 = $stringify($s1);
char[] s3 = $s1;
io::printfln("$s1 == %s", $s1);
io::printfln("s2 == %s", &s2);
io::printfln("s3 == %s", s3);
}
/* #expect: test.ll
c"$s1\00", align 1
c"1 + 2\00", align 1
c"1 + 2\00", align 1