diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2026-01-08 15:22:37 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2026-01-08 15:22:37 +0100 |
| commit | dd72dcbd5d07a9b4a2f735765233e2cc5faa7849 (patch) | |
| tree | 5fb62e337761546a2b3d1d949bf9842e3098a070 /test/test_samples/sample.cc | |
| parent | 0882b2456b2023f92e90abe1b1cc425bba36712c (diff) | |
chore: adding custom types support.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'test/test_samples/sample.cc')
| -rw-r--r-- | test/test_samples/sample.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_samples/sample.cc b/test/test_samples/sample.cc index 6a6bc44..038f487 100644 --- a/test/test_samples/sample.cc +++ b/test/test_samples/sample.cc @@ -10,7 +10,7 @@ class ostream return void; } - ostream& noop(const ostream in) + ostream& write(const char* buf, const long sz) { return *this; } @@ -18,7 +18,7 @@ class ostream int main() { - void* f = new ostream(); - f->noop(f); + ostream* f = new ostream(); + f->write("foo", 3); return 0; } |
