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

// No mat2 is known. This used to hit an assertion.
// Correct behavior is understandable error message(s).

mat2 rotmat(float a)
{
    return mat2(cos(a),sin(a),-sin(a),cos(a));
}

shader test ()
{
    printf ("Did not crash\n");
}
