// Copyright Contributors to the Open Shading Language project.
// SPDX-License-Identifier: BSD-3-Clause
// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage

// Regression for a early return bug which nops the first assignment in favor of an unreachable one

shader
test (output color Cout = 0)
{
    Cout = color (0, 1, 0);
    return;

    Cout = color(1, 0, 0);
    return;
}
