aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/bogus_compile_var.zig
blob: 3584730205ae8e180f7556faf5e310472b5f03ec (plain)
1
2
3
4
5
6
7
8
9
10
11
const x = @import("builtin").bogus;
export fn entry() usize {
    return @sizeOf(@TypeOf(x));
}

// error
// backend=stage2
// target=native
//
// :1:29: error: root struct of file 'builtin' has no member named 'bogus'
// note: struct declared here