diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/test_samples/ostream.ncpp | 6 | ||||
| -rw-r--r-- | test/test_samples/sample.ncpp | 5 |
2 files changed, 5 insertions, 6 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; diff --git a/test/test_samples/sample.ncpp b/test/test_samples/sample.ncpp index 1b46a2e..04c590e 100644 --- a/test/test_samples/sample.ncpp +++ b/test/test_samples/sample.ncpp @@ -1,9 +1,10 @@ -import ncpp.ostream; +import ncpp::ostream; int main(void) { let six_seven = 100; - shared_io()->consume(six_seven); + let eight_nine = 1; + shared_io()->consume(1, 67); return 0; } |
