diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-11-20 23:01:45 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-11-20 23:01:45 -0700 |
| commit | f645022d16361865e24582d28f1e62312fbc73bb (patch) | |
| tree | 7a7f03aff7bc7b9dc3f4ba1b3be57bd17caae1b7 /lib/init-lib/src/main.zig | |
| parent | 8ca4a5240e0258c84e437ed4a37972c8fff7842d (diff) | |
| download | zig-f645022d16361865e24582d28f1e62312fbc73bb.tar.gz zig-f645022d16361865e24582d28f1e62312fbc73bb.zip | |
merge `zig init-exe` and `zig init-lib` into `zig init`
Instead of `zig init-lib` and `zig init-exe`, now there is only
`zig init`, which initializes any of the template files that do not
already exist, and makes a package that contains both an executable and
a static library. The idea is that the user can delete whatever they
don't want. In fact, I think even more things should be added to the
build.zig template.
Diffstat (limited to 'lib/init-lib/src/main.zig')
| -rw-r--r-- | lib/init-lib/src/main.zig | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/init-lib/src/main.zig b/lib/init-lib/src/main.zig deleted file mode 100644 index ecfeade1a3..0000000000 --- a/lib/init-lib/src/main.zig +++ /dev/null @@ -1,10 +0,0 @@ -const std = @import("std"); -const testing = std.testing; - -export fn add(a: i32, b: i32) i32 { - return a + b; -} - -test "basic add functionality" { - try testing.expect(add(3, 7) == 10); -} |
