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