From cba532eebeb191b3c76e92ce668b022e78292276 Mon Sep 17 00:00:00 2001 From: Tristan Brice Velloza Kildaire Date: Sun, 19 May 2024 15:57:46 +0200 Subject: [PATCH] Test cases - Added `oop/basic.t` --- source/tlang/testing/oop/basic.t | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 source/tlang/testing/oop/basic.t diff --git a/source/tlang/testing/oop/basic.t b/source/tlang/testing/oop/basic.t new file mode 100644 index 00000000..7ae3fa79 --- /dev/null +++ b/source/tlang/testing/oop/basic.t @@ -0,0 +1,16 @@ +module basic; + +class Person +{ + byte* name; +} + +int main() +{ + Person g; + Person h; + + g.name = 0; + + return 0; +}