diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2016-01-28 16:09:06 -0700 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2016-01-28 16:09:06 -0700 |
| commit | 13220ccb51b7d2cf7b8d72a662eece95784116c3 (patch) | |
| tree | 70ee2f007841b3b720d25e64ba9ecb4311080779 /test/run_tests.cpp | |
| parent | ed3117a77fffa424e7f902059a7bf3a52f758bfc (diff) | |
| download | zig-13220ccb51b7d2cf7b8d72a662eece95784116c3.tar.gz zig-13220ccb51b7d2cf7b8d72a662eece95784116c3.zip | |
parsh understands constant sized arrays
Diffstat (limited to 'test/run_tests.cpp')
| -rw-r--r-- | test/run_tests.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/run_tests.cpp b/test/run_tests.cpp index afd7635caa..5b4f5a5694 100644 --- a/test/run_tests.cpp +++ b/test/run_tests.cpp @@ -1863,6 +1863,10 @@ pub const BarB = enum_Bar.B; pub extern fn func(a: ?&struct_Foo, b: ?&?&enum_Bar); pub const Foo = struct_Foo; pub const Bar = enum_Bar;)OUTPUT"); + + add_parseh_case("constant size array", R"SOURCE( +void func(int array[20]); + )SOURCE", R"OUTPUT(pub extern fn func(array: [20]c_int);)OUTPUT"); } static void print_compiler_invocation(TestCase *test_case) { |
