Skip to content

Commit

Permalink
Add test for void functions
Browse files Browse the repository at this point in the history
  • Loading branch information
laurenthuberdeau committed Feb 18, 2025
1 parent 9df1643 commit fec2d0d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/_all/void_functions.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#include <stdio.h>

int test(void); // Forward declaration

int test(void) {
putchar('T'); putchar('\n');
return 1;
}

int main(void) {
return test();
}
1 change: 1 addition & 0 deletions tests/_all/void_functions.golden
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
T

0 comments on commit fec2d0d

Please sign in to comment.