diff options
| author | Evan Haas <evan@lagerdata.com> | 2020-12-13 08:01:13 -0800 |
|---|---|---|
| committer | Veikka Tuominen <git@vexu.eu> | 2020-12-22 23:59:30 +0200 |
| commit | ccdb81fb31f3fa1384b44b74ecdae345457bd0b5 (patch) | |
| tree | e58de03181610a033949c2079b607336072af5a8 /lib/std/testing.zig | |
| parent | 6a75cfd0f6d45de3b4d1ad74eaec892dc1cd6e30 (diff) | |
| download | zig-ccdb81fb31f3fa1384b44b74ecdae345457bd0b5.tar.gz zig-ccdb81fb31f3fa1384b44b74ecdae345457bd0b5.zip | |
Improve handling of C compiler intrinsics in translate-c
C compiler intrinsics can only appear as part of a function call. When called
they are implicitly cast to a function pointer; treat this as a non-null
pointer so that it emits as a regular Zig function call.
Put `pub usingnamespace @import("std").c.builtins;` at the top of translated
C files so that they will have access to builtin functions defined there.
Fixes #6707
Diffstat (limited to 'lib/std/testing.zig')
0 files changed, 0 insertions, 0 deletions
