summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2026-01-08 15:22:37 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2026-01-08 15:22:37 +0100
commitdd72dcbd5d07a9b4a2f735765233e2cc5faa7849 (patch)
tree5fb62e337761546a2b3d1d949bf9842e3098a070 /test
parent0882b2456b2023f92e90abe1b1cc425bba36712c (diff)
chore: adding custom types support.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'test')
-rw-r--r--test/test_samples/sample.cc6
-rw-r--r--test/test_samples/sample.cc.pp3
-rw-r--r--test/test_samples/sample.kpp12
3 files changed, 3 insertions, 18 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;
}
diff --git a/test/test_samples/sample.cc.pp b/test/test_samples/sample.cc.pp
deleted file mode 100644
index 4cce7f6..0000000
--- a/test/test_samples/sample.cc.pp
+++ /dev/null
@@ -1,3 +0,0 @@
-int main() {
- return 0;
-}
diff --git a/test/test_samples/sample.kpp b/test/test_samples/sample.kpp
deleted file mode 100644
index edfab9c..0000000
--- a/test/test_samples/sample.kpp
+++ /dev/null
@@ -1,12 +0,0 @@
-struct foo
-{
- int bar()
- {
- int y = 0;
- return y;
- }
-};
-
-int main() {
- return 0;
-}