diff options
Diffstat (limited to 'test/test_samples')
| -rw-r--r-- | test/test_samples/ostream.ncpp | 13 | ||||
| -rw-r--r-- | test/test_samples/sample.ncpp | 4 |
2 files changed, 11 insertions, 6 deletions
diff --git a/test/test_samples/ostream.ncpp b/test/test_samples/ostream.ncpp index 82e9fb4..acc8ae3 100644 --- a/test/test_samples/ostream.ncpp +++ b/test/test_samples/ostream.ncpp @@ -1,6 +1,8 @@ -#import <stdio.h> +export ncpp.ostream; -struct ostream +#include <stdio.h> + +struct iostream { void consume(int& val) { @@ -13,5 +15,8 @@ struct ostream } }; -ostream out; -ostream in; +typedef iostream* ostream_ptr; + +ostream_ptr out; +ostream_ptr in; + diff --git a/test/test_samples/sample.ncpp b/test/test_samples/sample.ncpp index df857ac..c0b1fd1 100644 --- a/test/test_samples/sample.ncpp +++ b/test/test_samples/sample.ncpp @@ -1,9 +1,9 @@ -#import "ostream.ncpp" +import ncpp.ostream; int main(void) { let six_seven = 100; - out.consume(six_seven); + out->consume(six_seven); return 0; } |
