blob: cf01f5ea2ca486528aaaf625440038a711bd73f9 (
plain)
1
2
3
4
5
6
7
8
9
10
|
export fn entry() void {
const fn_ptr = @intToPtr(*align(1) fn () void, 0xffd2);
comptime fn_ptr();
}
// error
// backend=stage2
// target=native
//
// :3:20: error: comptime call of function pointer
|