mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-28 11:27:09 +03:00
c8aba15c22
Good riddance.
12 lines
241 B
Zig
12 lines
241 B
Zig
const std = @import("std");
|
|
const builtin = @import("builtin");
|
|
|
|
fn foo() u32 {
|
|
return 11227;
|
|
}
|
|
const bar = foo;
|
|
test "pointer to alias behaves same as pointer to function" {
|
|
var a = &bar;
|
|
try std.testing.expect(foo() == a());
|
|
}
|