diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2024-01-02 14:11:27 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-02 14:11:27 -0800 |
| commit | 289ae45c1b58e952867c4fa1e246d0ef7bc2ff64 (patch) | |
| tree | 5dd034143a2354b7b44496e684f1c764e2f9664c /test/behavior | |
| parent | c89bb3e141ee215add0b52930d48bffd8dae8342 (diff) | |
| parent | c546ddb3edc557fae4b932e5239b9dcb66117832 (diff) | |
| download | zig-289ae45c1b58e952867c4fa1e246d0ef7bc2ff64.tar.gz zig-289ae45c1b58e952867c4fa1e246d0ef7bc2ff64.zip | |
Merge pull request #18160 from ziglang/std-build-module
Move many settings from being per-Compilation to being per-Module
Diffstat (limited to 'test/behavior')
| -rw-r--r-- | test/behavior/eval.zig | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/test/behavior/eval.zig b/test/behavior/eval.zig index ac09066552..e99925f228 100644 --- a/test/behavior/eval.zig +++ b/test/behavior/eval.zig @@ -876,27 +876,27 @@ test "two comptime calls with array default initialized to undefined" { if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO const S = struct { - const CrossTarget = struct { - dynamic_linker: DynamicLinker = DynamicLinker{}, + const A = struct { + c: B = B{}, - pub fn parse() void { - var result: CrossTarget = .{}; - result.getCpuArch(); + pub fn d() void { + var f: A = .{}; + f.e(); } - pub fn getCpuArch(self: CrossTarget) void { - _ = self; + pub fn e(g: A) void { + _ = g; } }; - const DynamicLinker = struct { + const B = struct { buffer: [255]u8 = undefined, }; }; comptime { - S.CrossTarget.parse(); - S.CrossTarget.parse(); + S.A.d(); + S.A.d(); } } |
