Skip to content

Commit

Permalink
Compiler (unittests)
Browse files Browse the repository at this point in the history
- Added test for `simple_func_statement.t`

Test cases

- Added `simple_func_statement.t`
  • Loading branch information
deavmi committed May 26, 2024
1 parent 544affe commit 33fb23f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/tlang/compiler/core.d
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,8 @@ unittest


"source/tlang/testing/simple_pointer_array_syntax.t",

"source/tlang/testing/simple_func_statement.t"
];
foreach(string testFile; testFiles)
{
Expand Down
14 changes: 14 additions & 0 deletions source/tlang/testing/simple_func_statement.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module simple_func_statement;

void k(int* p)
{

}

int main()
{
int* arr;
k(arr);

return 0;
}

0 comments on commit 33fb23f

Please sign in to comment.