master
1const std = @import("std");
2
3extern fn foo_last() i32;
4extern fn bar_last() i32;
5
6export const one_0: i32 = 1;
7
8export fn foo_0() i32 {
9 return 1234;
10}
11export fn bar_0() i32 {
12 return 5678;
13}
14
15pub fn main() anyerror!void {
16 const foo_expected: i32 = 1 + 1234;
17 const bar_expected: i32 = 5678;
18 try std.testing.expectEqual(foo_expected, foo_last());
19 try std.testing.expectEqual(bar_expected, bar_last());
20}