| 1 | const foo_tl = @extern(*i32, .{ .name = "foo", .is_thread_local = true }); |
| 2 | const foo_dll = @extern(*i32, .{ .name = "foo", .is_dll_import = true }); |
| 3 | pub export fn entry() void { |
| 4 | _ = foo_tl; |
| 5 | } |
| 6 | pub export fn entry2() void { |
| 7 | _ = foo_dll; |
| 8 | } |
| 9 | // error |
| 10 | // |
| 11 | // :1:16: error: unable to resolve comptime value |
| 12 | // :1:16: note: initializer of container-level variable must be comptime-known |
| 13 | // :2:17: error: unable to resolve comptime value |
| 14 | // :2:17: note: initializer of container-level variable must be comptime-known |