zig/test
Parker Liu de62dc884e
translate-c: fix function prototype decalared inside a function
* If a function prototype is declarated inside a function, do not
  translate it to a top-level extern function declaration. Similar to
  extern local variable, just wrapped it into a block-local struct.

* Add a new extern_local_fn tag of aro_translate_c node for present
  extern local function declaration.

* When a function body has a C function prototype declaration, it adds
  an extern local function declaration. Subsequent function references
  will look for this function declaration.
2025-04-02 20:07:41 +00:00
..
behavior compiler: allow @import of ZON without a result type 2025-04-02 05:53:22 +01:00
c_abi Remove uses of deprecated callconv aliases 2025-03-05 03:01:43 +00:00
c_import translate-c: fix division and modulo of >8-bit stdint.h types in macros 2025-02-20 13:33:59 +02:00
cases compiler: allow @import of ZON without a result type 2025-04-02 05:53:22 +01:00
incremental incremental: add test for ZON file without result type 2025-04-02 05:58:29 +01:00
link test: Disable test-elf-ld-script-path-error for now. 2025-03-08 07:04:27 +01:00
src Remove uses of deprecated callconv aliases 2025-03-05 03:01:43 +00:00
standalone std.Build: implement addEmbedPath for adding C #embed search directories 2025-03-27 09:47:42 +01:00
assemble_and_link.zig migrate from std.Target.current to @import("builtin").target 2021-10-04 23:48:55 -07:00
behavior.zig spirv: don't hardcode test error type alignment 2025-03-17 20:19:08 +03:30
c_import.zig c_import: extract behavior tests that use @cImport 2024-02-20 18:44:43 +01:00
cases.zig remove test/cbe.zig 2024-03-28 15:24:01 +02:00
compare_output.zig std.heap: delete LoggingAllocator and friends 2025-02-06 14:23:23 -08:00
compile_errors.zig @deprecated: remove per-module flag in Build 2025-02-26 14:41:33 -05:00
gen_h.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
llvm_targets.zig std.Target: Remove Os.Tag.bridgeos. 2024-12-03 20:43:15 +01:00
nvptx.zig Remove uses of deprecated callconv aliases 2025-03-05 03:01:43 +00:00
run_translated_c.zig remove hard tabs from source code 2024-07-31 16:57:42 -07:00
stack_traces.zig tests: enable stack trace tests for x86_64-selfhosted 2025-01-23 23:22:13 +00:00
tests.zig spirv: require int8/int16 capabilities 2025-03-18 07:05:50 +03:30
translate_c.zig translate-c: fix function prototype decalared inside a function 2025-04-02 20:07:41 +00:00