summaryrefslogtreecommitdiffhomepage
path: root/test/test_samples/ostream.ncpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_samples/ostream.ncpp')
-rw-r--r--test/test_samples/ostream.ncpp6
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;