diff options
Diffstat (limited to 'test/behavior/export.zig')
| -rw-r--r-- | test/behavior/export.zig | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/behavior/export.zig b/test/behavior/export.zig index 5f8ccf02d4..3943fd2834 100644 --- a/test/behavior/export.zig +++ b/test/behavior/export.zig @@ -45,3 +45,13 @@ test "exporting enum type and value" { }; try expect(S.e == .two); } + +test "exporting with internal linkage" { + const S = struct { + fn foo() callconv(.C) void {} + comptime { + @export(foo, .{ .name = "exporting_with_internal_linkage_foo", .linkage = .Internal }); + } + }; + S.foo(); +} |
