zig/test/cases/address_of_extern_var_as_const.zig
2023-06-27 19:08:27 -04:00

11 lines
256 B
Zig

var internal_variable: u32 = 42;
export const p_internal_variable = &internal_variable;
extern var external_variable: u32;
export const p_external_variable = &external_variable;
// compile
// output_mode=Obj
// backend=stage2,llvm
// target=x86_64-linux