about summary refs log tree commit diff
path: root/lang/zig/opaque.zig
blob: 803d19bf736330c0d3e5bc621ccab15742ef6c57 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
// Stuff for C-compat
const Derp = opaque {};
const Wat = opaque {};

extern fn bar(d: *Derp) void;
fn foo(w: *Wat) callconv(.C) void {
    bar(w);
}

test "call foo" {
    foo(undefined);
}