v / vlib / v2 / tests / target_codegen_example / README.md
35 lines · 27 sloc · 1.57 KB · 10a27a35f62541cee8c09d75d37629f27d89d055
Raw

Target Codegen Example

This is a V2 fixture for target-specific cleanc generation.

It is intentionally stored as .vv2 source so shared V1/vfmt paths do not parse V2-only or experimental command-line contracts directly. The builder E2E test reads these files, writes them as temporary .v files, and runs the real cmd/v2 CLI.

The fixture is a compact demonstration of the supported user-facing contract: