diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2022-04-29 08:24:02 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-29 08:24:02 +0200 |
| commit | 3b8187072fc76966da9d9ab1a6a0ecd7aff4e090 (patch) | |
| tree | a998ecb0837408b309851b558b7eb5f2d5d42dbe /test/incremental/function_redeclaration.zig | |
| parent | fda143d5d81da852af73386a2100e18784bd0d3c (diff) | |
| parent | d25f06a71c058aa4ff8bf40749345028bda6e017 (diff) | |
| download | zig-3b8187072fc76966da9d9ab1a6a0ecd7aff4e090.tar.gz zig-3b8187072fc76966da9d9ab1a6a0ecd7aff4e090.zip | |
Merge pull request #11530 from ziglang/test-harness
test: move compare and run tests to new test harness
Diffstat (limited to 'test/incremental/function_redeclaration.zig')
| -rw-r--r-- | test/incremental/function_redeclaration.zig | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/incremental/function_redeclaration.zig b/test/incremental/function_redeclaration.zig new file mode 100644 index 0000000000..a9664646c9 --- /dev/null +++ b/test/incremental/function_redeclaration.zig @@ -0,0 +1,14 @@ +// dummy comment +fn entry() void {} +fn entry() void {} + +fn foo() void { + var foo = 1234; +} + +// error +// +// :3:1: error: redeclaration of 'entry' +// :2:1: note: other declaration here +// :6:9: error: local shadows declaration of 'foo' +// :5:1: note: declared here |
