Skip to content

Commit 9ac66b0

Browse files
committed
Add basic driver tests
Driver tests test the compilation of an entire file or collection of files, from generating executables to linking libraries. These are particularly helpful for testing compatibility on different platforms.
1 parent 18e6fb6 commit 9ac66b0

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
@C(extern) fn puts(str: *u8);
2+
13
fn main(): i32 = {
2-
hello_world();
4+
puts("Hello, world!"c);
35
0
46
};
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
fn main(): i32 = {
2+
hello_world();
3+
0
4+
};

0 commit comments

Comments
 (0)