Added in sizeof intrinsic + piping for more in the future. Inbetween commit before removing sizeof function
This commit is contained in:
12
tests/test_compiler_intrinsic.krak
Normal file
12
tests/test_compiler_intrinsic.krak
Normal file
@@ -0,0 +1,12 @@
|
||||
import simple_print:*
|
||||
|
||||
fun main(): int {
|
||||
println(#sizeof<char>)
|
||||
println(#sizeof<int>)
|
||||
println(#sizeof<float>)
|
||||
println(#sizeof<double>)
|
||||
println(#sizeof<*void>)
|
||||
return 0
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user