diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2026-01-09 22:38:30 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2026-01-09 22:40:16 +0100 |
| commit | 462a7e9796970b259815369ffaf4c5e24af3139c (patch) | |
| tree | 96f4b1c8f788881b68d1580498affbea0600c351 /test/test_samples/ostream.ncpp | |
| parent | 0877f8698ad68a324d866642ab950a5b22e49af1 (diff) | |
wip: Nectar stack and object allocation in frontend.v0.1.2-develop
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'test/test_samples/ostream.ncpp')
| -rw-r--r-- | test/test_samples/ostream.ncpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/test_samples/ostream.ncpp b/test/test_samples/ostream.ncpp index 4b631e7..f9b4d44 100644 --- a/test/test_samples/ostream.ncpp +++ b/test/test_samples/ostream.ncpp @@ -1,4 +1,4 @@ -export ncpp.ostream; +export ncpp::ostream; import printf, getchar, malloc; struct iostream @@ -25,9 +25,7 @@ struct iostream } }; -typedef iostream* iostream_ptr; - -iostream_ptr shared_io() +let shared_io() { let io = malloc(sizeof(iostream)); return io; |
