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

shader test (
    int iarray[5] = {1,2,3,4,5},
    string sarray[5] = {"a", "b", "c", "d", "e"},
    float farray[5] = {1,2,3,4,5}
    )
{
    printf ("iarray = %i\n", iarray);
    printf ("sarray = %s\n", sarray);
    printf ("farray = %f\n", farray);

    // Make sure the elements are reachable
    printf ("ielems reversed = %d %d %d %d %d\n", iarray[4], iarray[3], iarray[2], iarray[1], iarray[0]);
    printf ("selems reversed = %s %s %s %s %s\n", sarray[4], sarray[3], sarray[2], sarray[1], sarray[0]);
    printf ("felems reversed = %f %f %f %f %f\n", farray[4], farray[3], farray[2], farray[1], farray[0]);
}
