blob: 9f54c67a180dd704988ec9732aa9f035a5eccf12 [file] [log] [blame]
#!/bin/bash
#
# This file was generated by create_test_cases.py.
#
# Test that returns are properly lowered when they occur in
# both branches of an if-statement.
../../glsl_test optpass --quiet --input-ir 'do_lower_jumps(0, 1, 0, 0, 0)' <<EOF
((declare (in) float a)
(function sub
(signature float (parameters)
((if (expression bool > (var_ref a) (constant float (0.000000)))
((return (constant float (1.000000))))
((return (constant float (2.000000)))))))))
EOF