...
This commit is contained in:
@@ -2,5 +2,5 @@
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
nubc main.nub test.nub
|
||||
clang .build/main.ll .build/test.ll -o .build/out
|
||||
nubc main.nub
|
||||
clang .build/main.ll -o .build/out
|
||||
@@ -2,20 +2,13 @@ module main
|
||||
|
||||
extern "puts" func puts(text: ^i8)
|
||||
|
||||
struct Test
|
||||
{
|
||||
field: u32
|
||||
struct Test {
|
||||
test: ^i8 = "test1"
|
||||
}
|
||||
|
||||
extern "main" func main(argc: i64, argv: [?]^i8)
|
||||
{
|
||||
let x: ^i8 = "test"
|
||||
// test
|
||||
^x^ = "uwu"
|
||||
puts(x)
|
||||
}
|
||||
let x = "test"
|
||||
|
||||
func test(test: Test): Test
|
||||
{
|
||||
return test
|
||||
puts(x)
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
module test
|
||||
|
||||
extern "puts" func puts(text: ^i8)
|
||||
|
||||
func test()
|
||||
{
|
||||
puts("uwu")
|
||||
}
|
||||
Reference in New Issue
Block a user