aboutsummaryrefslogtreecommitdiff
path: root/test/run_tests.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-01-05 22:47:47 -0700
committerAndrew Kelley <superjoe30@gmail.com>2016-01-05 22:47:47 -0700
commit4ef062b9c819a2d7bfa9dd3394713ac9e8051660 (patch)
treecae97813bd1925ea7e18f96dc33fde913d161066 /test/run_tests.cpp
parente21a83dd74822d9d8b272079a2e0e0b01aff60d4 (diff)
downloadzig-4ef062b9c819a2d7bfa9dd3394713ac9e8051660.tar.gz
zig-4ef062b9c819a2d7bfa9dd3394713ac9e8051660.zip
array syntax is [10]i32 instead of [i32; 10]
Diffstat (limited to 'test/run_tests.cpp')
-rw-r--r--test/run_tests.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/run_tests.cpp b/test/run_tests.cpp
index 6df16e9a59..e3c646f5ee 100644
--- a/test/run_tests.cpp
+++ b/test/run_tests.cpp
@@ -349,7 +349,7 @@ done:
use "std.zig";
pub fn main(argc: isize, argv: &&u8, env: &&u8) -> i32 {
- var array : [u32; 5];
+ var array : [5]u32;
var i : u32 = 0;
while (i < 5) {
@@ -784,7 +784,7 @@ use "std.zig";
const ARRAY_SIZE : u8 = 20;
pub fn main(argc: isize, argv: &&u8, env: &&u8) -> i32 {
- var array : [u8; ARRAY_SIZE];
+ var array : [ARRAY_SIZE]u8;
print_u64(#sizeof(#typeof(array)));
print_str("\n");
return 0;