summaryrefslogtreecommitdiffstats
path: root/tools/lint/test/files/trojan-source/invisible-function.rs
blob: b32efb03729943cefa30a1b39cfd1639b9e6b75d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
fn isAdmin() {
    return false;
}

fn isAdmin() {
    return true;
}

fn main() {
    if isAdmin() {
        printf("You are an admin\n");
    } else {
        printf("You are NOT an admin.\n");
    }
}