diff options
Diffstat (limited to 'test/stage1/behavior')
| -rw-r--r-- | test/stage1/behavior/bugs/7250.zig | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/stage1/behavior/bugs/7250.zig b/test/stage1/behavior/bugs/7250.zig new file mode 100644 index 0000000000..b0f1aa15df --- /dev/null +++ b/test/stage1/behavior/bugs/7250.zig @@ -0,0 +1,15 @@ +const nrfx_uart_t = extern struct { + p_reg: [*c]u32, + drv_inst_idx: u8, +}; + +pub fn nrfx_uart_rx(p_instance: [*c]const nrfx_uart_t) void {} + +threadlocal var g_uart0 = nrfx_uart_t{ + .p_reg = 0, + .drv_inst_idx = 0, +}; + +test "reference a global threadlocal variable" { + _ = nrfx_uart_rx(&g_uart0); +} |
