1export fn foo() void {}
2const bar: u32 = 123;
3const other: u32 = 456;
4const does_exports = {
5 @export(&bar, .{ .name = "bar" });
6 @export(&other, .{ .name = "other" });
7};
8comptime {
9 //_ = does_exports;
10}
11pub fn main() !void {
12 const S = struct {
13 extern fn foo() void;
14 };
15 S.foo();
16}
17const std = @import("std");