move passing stage1 compile error tests to stage2
This commit is contained in:
committed by
Jakub Konka
parent
c248af3bdc
commit
3204d00a5e
21
test/cases/compile_errors/ambiguous_decl_reference.zig
Normal file
21
test/cases/compile_errors/ambiguous_decl_reference.zig
Normal file
@@ -0,0 +1,21 @@
|
||||
fn foo() void {}
|
||||
fn bar() void {
|
||||
const S = struct {
|
||||
fn baz() void {
|
||||
foo();
|
||||
}
|
||||
fn foo() void {}
|
||||
};
|
||||
S.baz();
|
||||
}
|
||||
export fn entry() void {
|
||||
bar();
|
||||
}
|
||||
|
||||
// error
|
||||
// backend=stage2
|
||||
// target=native
|
||||
//
|
||||
// :5:13: error: ambiguous reference
|
||||
// :7:9: note: declared here
|
||||
// :1:1: note: also declared here
|
||||
Reference in New Issue
Block a user