aboutsummaryrefslogtreecommitdiff
path: root/std
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-02-03 21:34:09 -0700
committerAndrew Kelley <superjoe30@gmail.com>2016-02-03 21:34:09 -0700
commit2521afef699d40917db906ebb27a87c5ea287fbe (patch)
treea42906cf33e4199b81f8aba70153120cd4aa5c0f /std
parent5c310f43432ec723f8b7d449313c1ea20f1f2d78 (diff)
downloadzig-2521afef699d40917db906ebb27a87c5ea287fbe.tar.gz
zig-2521afef699d40917db906ebb27a87c5ea287fbe.zip
add ability to call function pointer field
also introduce the self hosted tests closes #108
Diffstat (limited to 'std')
-rw-r--r--std/test_runner.zig4
1 files changed, 1 insertions, 3 deletions
diff --git a/std/test_runner.zig b/std/test_runner.zig
index 87d81a57a9..3ad1a9c3b9 100644
--- a/std/test_runner.zig
+++ b/std/test_runner.zig
@@ -17,9 +17,7 @@ pub fn main(args: [][]u8) -> %void {
%%stderr.print_str(test_fn.name);
%%stderr.print_str("...");
- // TODO support calling function pointers as fields directly
- const fn_ptr = test_fn.func;
- fn_ptr();
+ test_fn.func();
%%stderr.print_str("OK\n");