diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2016-02-27 22:06:46 -0700 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2016-03-01 03:13:40 -0700 |
| commit | f1d338194e9a00e56a42da1298f2ac0ed75797df (patch) | |
| tree | 6768d247960a6e8006fbffa00206ce44152c66d5 /std/test_runner_libc.zig | |
| parent | 28fe994a107b4f66d840c50df614504ac2387587 (diff) | |
| download | zig-f1d338194e9a00e56a42da1298f2ac0ed75797df.tar.gz zig-f1d338194e9a00e56a42da1298f2ac0ed75797df.zip | |
rewrite how importing works
* Introduce the concept of packages. Closes #3
* Add support for error notes.
* Introduce `@import` and `@c_import` builtin functions and
remove the `import` and `c_import` top level declarations.
* Introduce the `use` top level declaration.
* Add `--check-unused` parameter to perform semantic
analysis and codegen on all top level declarations, not
just exported ones and ones referenced by exported ones.
* Delete the root export node and add `--library` argument.
Diffstat (limited to 'std/test_runner_libc.zig')
| -rw-r--r-- | std/test_runner_libc.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/std/test_runner_libc.zig b/std/test_runner_libc.zig index 9f7c9e7faa..ff39c3325c 100644 --- a/std/test_runner_libc.zig +++ b/std/test_runner_libc.zig @@ -1,6 +1,6 @@ -import "test_runner.zig"; +const test_runner = @import("test_runner.zig"); export fn main(argc: c_int, argv: &&u8) -> c_int { - run_tests() %% return -1; + test_runner.run_tests() %% return -1; return 0; } |
