diff options
| author | Jacob Young <jacobly0@users.noreply.github.com> | 2023-07-31 01:50:54 -0400 |
|---|---|---|
| committer | Jacob Young <jacobly0@users.noreply.github.com> | 2023-07-31 01:58:10 -0400 |
| commit | 2ba787e3038d8776599fb968b3ddec6b7a62a3f3 (patch) | |
| tree | 967663a3f1226f48ac1405416f7bc002074430da /test/behavior/struct.zig | |
| parent | 9831f272383a66392ebeadbc60d8176f44b3553c (diff) | |
| download | zig-2ba787e3038d8776599fb968b3ddec6b7a62a3f3.tar.gz zig-2ba787e3038d8776599fb968b3ddec6b7a62a3f3.zip | |
Sema: restrict what can appear in a naked function
* Disable runtime calls, since it is not possible to know the proper
stack adjustment to follow the callee abi.
* Disable runtime returns, since it is not possible to know where the
return address is stored in general.
* Allow implicit returns regardless of the return type, which allows
naked functions with a non-void return type to be written.
Diffstat (limited to 'test/behavior/struct.zig')
0 files changed, 0 insertions, 0 deletions
