summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2026-01-16 19:04:01 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2026-01-16 19:04:01 +0100
commitcc0b46b2f8d1fa0fa3c888d08efb3e54f8ecfc6e (patch)
tree4344d2a8f91682a064a6ccbc43e7db9fb65b64c0 /test
parent38e21d3cd9409d583c627fb9bd401db5dcbd6981 (diff)
chore: update and improve Nectar codegen.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'test')
-rw-r--r--test/test_samples/test_ostream.ncpp4
-rw-r--r--test/test_samples/test_struct.ncpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/test/test_samples/test_ostream.ncpp b/test/test_samples/test_ostream.ncpp
index afed25d..3caa2ab 100644
--- a/test/test_samples/test_ostream.ncpp
+++ b/test/test_samples/test_ostream.ncpp
@@ -2,8 +2,8 @@
let main()
{
- let io := {};
- io := ostream();
+ let io := 0;
+ io := ostream{};
let arr := io.read(0, 0);
return arr[0];
} \ No newline at end of file
diff --git a/test/test_samples/test_struct.ncpp b/test/test_samples/test_struct.ncpp
index 5006a01..c725b64 100644
--- a/test/test_samples/test_struct.ncpp
+++ b/test/test_samples/test_struct.ncpp
@@ -1,6 +1,6 @@
impl foo
{
- foo()
+ let init()
{
return;
}
@@ -14,7 +14,7 @@ impl foo
let construct_foo()
{
let io := new;
- io := foo();
+ io := foo{};
return io;
}