diff --git a/extra/bin/update/c3 b/extra/bin/update/c3 index cf8ae7c..35cbeb6 100755 --- a/extra/bin/update/c3 +++ b/extra/bin/update/c3 @@ -10,7 +10,7 @@ cmake -DCMAKE_C_FLAGS="-w" .. make -j$(nproc) mkdir -p /usr/local/c3 -[[ -f c3c ]] && cp c3c /usr/local/c3/ +[[ -f c3c ]] && cp c3c /usr/local/c3/ && cp -R lib /usr/local/c3/lib cd / rm -rf /tmp/c3c \ No newline at end of file diff --git a/extra/tests/c3/main.c3 b/extra/tests/c3/main.c3 index fa86e6f..09266f8 100644 --- a/extra/tests/c3/main.c3 +++ b/extra/tests/c3/main.c3 @@ -1,9 +1,8 @@ module main; +import std::io; -extern func void printf(char *str, ...); - -func int main() +fn int main() { - printf("hello, world\n"); + io::println("hello, world"); return 0; } \ No newline at end of file