aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/usingnamespace/foo.zig
blob: 6b2b14e51ce35fa39486837e853d7a249c8f9a53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// purposefully conflicting function with main source file
// but it's private so it should be OK
fn privateFunction() bool {
    return false;
}

pub fn printText() bool {
    return privateFunction();
}

pub var saw_foo_function = false;
pub fn foo_function() void {
    saw_foo_function = true;
}