diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2016-01-11 20:43:48 -0700 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2016-01-11 20:44:10 -0700 |
| commit | cb46d0b5b0d1d83856adab34b461049f5cfac019 (patch) | |
| tree | b1aff76b3fd220242a9bc0cc265cfbf28dd70477 /test/run_tests.cpp | |
| parent | ccc8e9f4c328cb29fa7f21101d8c20fd23e4942a (diff) | |
| download | zig-cb46d0b5b0d1d83856adab34b461049f5cfac019.tar.gz zig-cb46d0b5b0d1d83856adab34b461049f5cfac019.zip | |
fix not adding builtin functions code
Diffstat (limited to 'test/run_tests.cpp')
| -rw-r--r-- | test/run_tests.cpp | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/test/run_tests.cpp b/test/run_tests.cpp index 6955b6c0e3..445433a863 100644 --- a/test/run_tests.cpp +++ b/test/run_tests.cpp @@ -1033,19 +1033,6 @@ fn print_ok(val: #typeof(x)) -> #typeof(foo) { const foo : i32 = 0; )SOURCE", "OK\n"); - add_simple_case("enum with void types", R"SOURCE( -use "std.zig"; -enum Foo { A, B, C, D, } -pub fn main(argc: isize, argv: &&u8, env: &&u8) -> i32 { - const foo : Foo = Foo.B; - if (foo != Foo.B) { - print_str("BAD\n"); - } - print_str("OK\n"); - return 0; -} - )SOURCE", "OK\n"); - add_simple_case("enum type", R"SOURCE( use "std.zig"; @@ -1070,7 +1057,11 @@ enum Bar { pub fn main(argc: isize, argv: &&u8, env: &&u8) -> i32 { const foo1 = Foo.One(13); const foo2 = Foo.Two(Point { .x = 1234, .y = 5678, }); - const bar = Bar.A; + const bar = Bar.B; + + if (bar != Bar.B) { + print_str("BAD\n"); + } if (#value_count(Foo) != 3) { print_str("BAD\n"); |
