diff options
Diffstat (limited to 'test/behavior/src.zig')
| -rw-r--r-- | test/behavior/src.zig | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/behavior/src.zig b/test/behavior/src.zig index 89a8e424aa..ebf6ab06b0 100644 --- a/test/behavior/src.zig +++ b/test/behavior/src.zig @@ -23,8 +23,12 @@ test "@src" { test "@src used as a comptime parameter" { const S = struct { - fn Foo(comptime _: std.builtin.SourceLocation) type { - return struct {}; + fn Foo(comptime src: std.builtin.SourceLocation) type { + return struct { + comptime { + _ = src; + } + }; } }; const T1 = S.Foo(@src()); |
