Files
c3c/resources/testproject/hello_world.c3
Christoffer Lerno b87e27d8a3 Update tests and CI (#979)
Update CI. Explicit native mutex "initialized" bool.
2023-09-06 22:43:07 +02:00

15 lines
315 B
C

module hello_world;
import std;
import bar;
fn int test_doubler(int x) @if(env::WIN32) => x * x;
extern fn int test_doubler(int) @if(!env::WIN32);
extern fn void printf(char *, ...);
fn int main()
{
printf("Hello World!\n");
bar::test();
printf("Hello double: %d\n", test_doubler(11));
return 0;
}