aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-08-23 15:05:26 -0700
committerAndrew Kelley <superjoe30@gmail.com>2016-08-29 22:14:09 -0700
commit1f7ec741fa5b1d9ba3826e06a8a8a0feec58876f (patch)
treeb74ec329f2e7e128087282adedcd37752b7cceaf /test
parent6149f7318986214a34b09347f28ba48b2a614fef (diff)
downloadzig-1f7ec741fa5b1d9ba3826e06a8a8a0feec58876f.tar.gz
zig-1f7ec741fa5b1d9ba3826e06a8a8a0feec58876f.zip
implement `?return` expression
Diffstat (limited to 'test')
-rw-r--r--test/cases/return_type_type.zig2
-rw-r--r--test/self_hosted.zig1
2 files changed, 2 insertions, 1 deletions
diff --git a/test/cases/return_type_type.zig b/test/cases/return_type_type.zig
index 4f1ac04e45..4337c072b2 100644
--- a/test/cases/return_type_type.zig
+++ b/test/cases/return_type_type.zig
@@ -11,7 +11,7 @@ pub struct SmallList(inline T: type, inline STATIC_SIZE: usize) {
}
#attribute("test")
-fn function_with_return_type_type() {
+fn functionWithReturnTypeType() {
var list: List(i32) = undefined;
var list2: List(i32) = undefined;
list.length = 10;
diff --git a/test/self_hosted.zig b/test/self_hosted.zig
index beffaf9231..a107715afd 100644
--- a/test/self_hosted.zig
+++ b/test/self_hosted.zig
@@ -6,6 +6,7 @@ const other = @import("other.zig");
const test_return_type_type = @import("cases/return_type_type.zig");
const test_zeroes = @import("cases/zeroes.zig");
const test_sizeof_and_typeof = @import("cases/sizeof_and_typeof.zig");
+const test_maybe_return = @import("cases/maybe_return.zig");
// normal comment
/// this is a documentation comment