zig/test/cases/address_of_extern_var_as_const.zig

11 lines
256 B
Zig
Raw Normal View History

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