diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2017-01-16 14:23:32 -0500 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2017-01-16 14:23:32 -0500 |
| commit | c715309bc5de874d3d418c80095d50f7efc17001 (patch) | |
| tree | c795a49970383a38f5d2715e09bff99f68371d91 /test/run_tests.cpp | |
| parent | 4cbeb87e83135e0a1ecbfb90170761ad6e5adb7a (diff) | |
| parent | 1e0b493276bd645e0162fb5edac03bbc8911d0b1 (diff) | |
| download | zig-c715309bc5de874d3d418c80095d50f7efc17001.tar.gz zig-c715309bc5de874d3d418c80095d50f7efc17001.zip | |
Merge branch 'master' into ir-merge
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 91f9e74db1..7ecc1ca36c 100644 --- a/test/run_tests.cpp +++ b/test/run_tests.cpp @@ -1590,6 +1590,11 @@ fn privateFunction() { } )SOURCE"); } + add_compile_fail_case("container init with non-type", R"SOURCE( +const zero: i32 = 0; +const a = zero{1}; + )SOURCE", 1, ".tmp_source.zig:3:11: error: expected type, found 'i32'"); + } ////////////////////////////////////////////////////////////////////////////// |
