Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | RSS feed

  1. #!/bin/bash
  2. #
  3. # This file was generated by create_test_cases.py.
  4. #
  5. # Test that do_lower_jumps respects the lower_main_return
  6. # flag in deciding whether to lower returns in the main
  7. # function.
  8. ../../glsl_test optpass --quiet --input-ir 'do_lower_jumps(0, 0, 0, 0, 0)' <<EOF
  9. ((declare (in) float a) (declare (in) float b)
  10.  (function main
  11.   (signature void (parameters)
  12.    ((if (expression bool > (var_ref a) (constant float (0.000000)))
  13.      ((if (expression bool > (var_ref b) (constant float (0.000000)))
  14.        ((return))
  15.        ()))
  16.      ())))))
  17. EOF
  18.