diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2016-02-02 21:46:53 -0700 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2016-02-02 21:46:53 -0700 |
| commit | b04e64d300b8531c0e84c376d484a62aa9f92614 (patch) | |
| tree | f44c70585a172d6e4a6ed2ec4368d1e7fe012c1b /test/run_tests.cpp | |
| parent | a50474e7cfc97e404fbb9f3b2f33507afac0ae2b (diff) | |
| download | zig-b04e64d300b8531c0e84c376d484a62aa9f92614.tar.gz zig-b04e64d300b8531c0e84c376d484a62aa9f92614.zip | |
add @compile_var builtin and "is_big_endian" compile var
Diffstat (limited to 'test/run_tests.cpp')
| -rw-r--r-- | test/run_tests.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/run_tests.cpp b/test/run_tests.cpp index dd5f085276..14856b7ab0 100644 --- a/test/run_tests.cpp +++ b/test/run_tests.cpp @@ -2033,6 +2033,11 @@ fn func() -> bogus {} )SOURCE", 2, ".tmp_source.zig:3:1: error: redefinition of 'func'", ".tmp_source.zig:2:14: error: use of undeclared identifier 'bogus'"); + + + add_compile_fail_case("bogus compile var", R"SOURCE( +const x = @compile_var("bogus"); + )SOURCE", 1, ".tmp_source.zig:2:24: error: unrecognized compile variable: 'bogus'"); } ////////////////////////////////////////////////////////////////////////////// |
