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