aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/bugs/11100.zig
blob: cacc770ef0cd11e245cadfc1db9ae5e0676a2957 (plain)
1
2
3
4
5
6
7
8
9
10
11
const std = @import("std");
pub fn do() bool {
    inline for (.{"a"}) |_| {
        if (true) return false;
    }
    return true;
}

test "bug" {
    try std.testing.expect(!do());
}