float literals

This commit is contained in:
nub31
2025-05-16 20:27:42 +02:00
parent e0bbb7478e
commit 2a4401bab6
3 changed files with 121 additions and 37 deletions

View File

@@ -2,18 +2,9 @@ import c;
global func main(argc: i64, argv: i64) {
printf("args: %d, starts at %p\n", argc, argv);
a = 128;
b = 32768;
c = 2147483648;
d = 9223372036850000000;
x = test(a, b, c, d);
printf("%d\n", x);
test(12.1);
}
func test(a: i8, b: i16, c: i32, d: i64): i64 {
printf("a: %d, b: %d, c: %d, d: %d\n", a, b, c, d);
return 12;
func test(a: f64) {
printf("%f\n", a);
}