From 0b04e0f7c5fa15f3f89a8c7b7bc23bee0587f7a1 Mon Sep 17 00:00:00 2001 From: belliash Date: Wed, 17 Apr 2019 17:41:47 +0200 Subject: [PATCH] Test program entry point. --- tests/entry_point.aer | 15 +++++++++++++++ tests/entry_point.exp | 3 +++ 2 files changed, 18 insertions(+) create mode 100644 tests/entry_point.aer create mode 100644 tests/entry_point.exp diff --git a/tests/entry_point.aer b/tests/entry_point.aer new file mode 100644 index 0000000..e167638 --- /dev/null +++ b/tests/entry_point.aer @@ -0,0 +1,15 @@ +class Program { + + void __construct() { + print("Program::__construct() called.\n"); + } + + void __destruct() { + print("Program::__destruct() called.\n"); + } + + void main() { + print("Program::main() called.\n"); + } + +} diff --git a/tests/entry_point.exp b/tests/entry_point.exp new file mode 100644 index 0000000..241f33f --- /dev/null +++ b/tests/entry_point.exp @@ -0,0 +1,3 @@ +Program::__construct() called. +Program::main() called. +Program::__destruct() called. \ No newline at end of file