Test program entry point.
The build was successful. Details

This commit is contained in:
Rafal Kupiec 2019-04-17 17:41:47 +02:00
parent 407bcf5a29
commit 0b04e0f7c5
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4
2 changed files with 18 additions and 0 deletions

15
tests/entry_point.aer Normal file
View File

@ -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");
}
}

3
tests/entry_point.exp Normal file
View File

@ -0,0 +1,3 @@
Program::__construct() called.
Program::main() called.
Program::__destruct() called.