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

float sqr (float a)
{
    float z = a * a;
    printf ("%g*%g = %g\n", a, a, z);
    return a*a;
}


shader test ()
{
    float x = 2;
    float y = sqr (x);
    printf ("x = %g, y = %g\n", x, y);
}
