diff options
| author | Veikka Tuominen <git@vexu.eu> | 2022-06-27 18:32:59 +0300 |
|---|---|---|
| committer | Jakub Konka <kubkon@jakubkonka.com> | 2022-06-30 09:57:38 +0200 |
| commit | 3204d00a5e7fe119b690e921138a439fb84dff5b (patch) | |
| tree | 40dba7f0816a1a8cae35657aa0d6bcb0ec19b6ba /test/cases/compile_errors/colliding_invalid_top_level_functions.zig | |
| parent | c248af3bdcd17c334e742d53a7ac7bda2422a688 (diff) | |
| download | zig-3204d00a5e7fe119b690e921138a439fb84dff5b.tar.gz zig-3204d00a5e7fe119b690e921138a439fb84dff5b.zip | |
move passing stage1 compile error tests to stage2
Diffstat (limited to 'test/cases/compile_errors/colliding_invalid_top_level_functions.zig')
| -rw-r--r-- | test/cases/compile_errors/colliding_invalid_top_level_functions.zig | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/cases/compile_errors/colliding_invalid_top_level_functions.zig b/test/cases/compile_errors/colliding_invalid_top_level_functions.zig new file mode 100644 index 0000000000..ee0711088d --- /dev/null +++ b/test/cases/compile_errors/colliding_invalid_top_level_functions.zig @@ -0,0 +1,12 @@ +fn func() bogus {} +fn func() bogus {} +export fn entry() usize { return @sizeOf(@TypeOf(func)); } + +// error +// backend=stage2 +// target=native +// +// :2:1: error: redeclaration of 'func' +// :1:1: note: other declaration here +// :1:11: error: use of undeclared identifier 'bogus' +// :2:11: error: use of undeclared identifier 'bogus' |
