Finch/tests/new
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Nexoniarz d557b5505e Warnings for big copies: a struct with 256+ bytes of plain data as a parameter or in for x in list
- on stderr (finch ir stays the IR), as yellow warnings in editors (@W in the index), once per place
- str, arrays and maps inside a struct don't count: passing it copies only their handles
- none in the compiler, the examples or the tests other than the new one
- docs: the warning instead of "not planned"; what was and wasn't checked for Android

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016GzNP6r8dg6WDxUVZy8wjL
2026-10-29 12:15:22 +01:00
..
fail finch.toml, threads and atomics, finch fmt, C++ files, struct #defines, a struct variable given for its ptr 2026-10-29 11:17:10 +01:00
ui Modules are known by their file: import button from ui/menu.fch and import ui/button are one module, two util.fch are two; min/max/abs/clamp win over C's int-only abs; completion after an import's other name; hover docs; engineers' guides 2026-10-29 09:52:04 +01:00
auto_addr.fch finch.toml, threads and atomics, finch fmt, C++ files, struct #defines, a struct variable given for its ptr 2026-10-29 11:17:10 +01:00
auto_addr.out finch.toml, threads and atomics, finch fmt, C++ files, struct #defines, a struct variable given for its ptr 2026-10-29 11:17:10 +01:00
big_copies.fch Warnings for big copies: a struct with 256+ bytes of plain data as a parameter or in for x in list 2026-10-29 12:15:22 +01:00
big_copies.out Warnings for big copies: a struct with 256+ bytes of plain data as a parameter or in for x in list 2026-10-29 12:15:22 +01:00
c_unions_macros.fch static inline C functions (mingw's printf and time), macOS libraries that call their host, lld's missing-library message 2026-10-29 11:53:24 +01:00
c_unions_macros.out static inline C functions (mingw's printf and time), macOS libraries that call their host, lld's missing-library message 2026-10-29 11:53:24 +01:00
cunion.c C import: unions (SDL_Event) and their fields; #defines that are expressions, casts or text; typedef'd structs no function mentions; FLAG_A | FLAG_B fits a u64 2026-10-29 09:23:29 +01:00
cunion.h static inline C functions (mingw's printf and time), macOS libraries that call their host, lld's missing-library message 2026-10-29 11:53:24 +01:00
defaults_numbers.fch Struct defaults apply inside structs; exit() ends an or-block; 1e9 literals; x * 2.0 stays f32; floats print as the shortest exact text; str(x, digits) 2026-10-29 09:14:58 +01:00
defaults_numbers.out Struct defaults apply inside structs; exit() ends an or-block; 1e9 literals; x * 2.0 stays f32; floats print as the shortest exact text; str(x, digits) 2026-10-29 09:14:58 +01:00
enums.fch enums and match (in the compiler written in Finch) 2026-10-25 20:49:04 +01:00
enums.out enums and match (in the compiler written in Finch) 2026-10-25 20:49:04 +01:00
exit_or.fch Struct defaults apply inside structs; exit() ends an or-block; 1e9 literals; x * 2.0 stays f32; floats print as the shortest exact text; str(x, digits) 2026-10-29 09:14:58 +01:00
exit_or.out Struct defaults apply inside structs; exit() ends an or-block; 1e9 literals; x * 2.0 stays f32; floats print as the shortest exact text; str(x, digits) 2026-10-29 09:14:58 +01:00
generics.fch generics (in the compiler written in Finch) 2026-10-25 20:53:13 +01:00
generics.out generics (in the compiler written in Finch) 2026-10-25 20:53:13 +01:00
interpolation.fch finch.toml, threads and atomics, finch fmt, C++ files, struct #defines, a struct variable given for its ptr 2026-10-29 11:17:10 +01:00
interpolation.out finch.toml, threads and atomics, finch fmt, C++ files, struct #defines, a struct variable given for its ptr 2026-10-29 11:17:10 +01:00
lang_additions.fch const, if as a value, """ text over several lines, min/max/abs/clamp, import a/b and import x as y, the fs module 2026-10-29 09:37:41 +01:00
lang_additions.out const, if as a value, """ text over several lines, min/max/abs/clamp, import a/b and import x as y, the fs module 2026-10-29 09:37:41 +01:00
modules_by_file.fch Modules are known by their file: import button from ui/menu.fch and import ui/button are one module, two util.fch are two; min/max/abs/clamp win over C's int-only abs; completion after an import's other name; hover docs; engineers' guides 2026-10-29 09:52:04 +01:00
modules_by_file.out Modules are known by their file: import button from ui/menu.fch and import ui/button are one module, two util.fch are two; min/max/abs/clamp win over C's int-only abs; completion after an import's other name; hover docs; engineers' guides 2026-10-29 09:52:04 +01:00
payload_enums.fch Enums whose variants hold values 2026-10-26 00:18:53 +01:00
payload_enums.out Enums whose variants hold values 2026-10-26 00:18:53 +01:00
std_fs.fch const, if as a value, """ text over several lines, min/max/abs/clamp, import a/b and import x as y, the fs module 2026-10-29 09:37:41 +01:00
std_fs.out const, if as a value, """ text over several lines, min/max/abs/clamp, import a/b and import x as y, the fs module 2026-10-29 09:37:41 +01:00
std_json.fch a standard library in Finch: path, time, proc, json 2026-10-25 20:58:26 +01:00
std_json.out a standard library in Finch: path, time, proc, json 2026-10-25 20:58:26 +01:00
std_path.fch a standard library in Finch: path, time, proc, json 2026-10-25 20:58:26 +01:00
std_path.out a standard library in Finch: path, time, proc, json 2026-10-25 20:58:26 +01:00
std_time_proc.fch --target: windows, linux, arm64, macos or a triple, in the compiler written in Finch 2026-10-25 21:33:19 +01:00
std_time_proc.out --target: windows, linux, arm64, macos or a triple, in the compiler written in Finch 2026-10-25 21:33:19 +01:00
threads.fch finch.toml, threads and atomics, finch fmt, C++ files, struct #defines, a struct variable given for its ptr 2026-10-29 11:17:10 +01:00
threads.out finch.toml, threads and atomics, finch fmt, C++ files, struct #defines, a struct variable given for its ptr 2026-10-29 11:17:10 +01:00
util.fch Modules are known by their file: import button from ui/menu.fch and import ui/button are one module, two util.fch are two; min/max/abs/clamp win over C's int-only abs; completion after an import's other name; hover docs; engineers' guides 2026-10-29 09:52:04 +01:00