aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/colliding_invalid_top_level_functions.zig
blob: ee0711088d924a2dab4c11c13a50bfc3d939967a (plain)
1
2
3
4
5
6
7
8
9
10
11
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'