diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2015-12-09 01:03:04 -0700 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2015-12-09 01:03:04 -0700 |
| commit | dfda85e870df1b0620c418940db3b946fdd3d620 (patch) | |
| tree | 94d4d7e158f62ee2cd153b002165bc3ef7aa7c47 /test/run_tests.cpp | |
| parent | 4eff5f114b463ddd887665129f2e1d29b0f13b7f (diff) | |
| download | zig-dfda85e870df1b0620c418940db3b946fdd3d620.tar.gz zig-dfda85e870df1b0620c418940db3b946fdd3d620.zip | |
ability to call external variadic functions
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 7bbe6be97b..d3bc5f8bde 100644 --- a/test/run_tests.cpp +++ b/test/run_tests.cpp @@ -577,6 +577,11 @@ fn f() { ".tmp_source.zig:5:8: error: array subscripts must be integers", ".tmp_source.zig:5:19: error: array access of non-array", ".tmp_source.zig:5:19: error: array subscripts must be integers"); + + add_compile_fail_case("variadic functions only allowed in extern", R"SOURCE( +fn f(...) {} + )SOURCE", 1, ".tmp_source.zig:2:1: error: variadic arguments only allowed in extern functions"); + } static void print_compiler_invocation(TestCase *test_case, Buf *zig_stderr) { |
