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 a non-void return at the end of a loop is
  6. # properly lowered.
  7. ../../glsl_test optpass --quiet --input-ir 'do_lower_jumps(0, 0, 0, 0, 0)' <<EOF
  8. ((declare (out) float a) (declare (out) float b)
  9.  (function sub
  10.   (signature float (parameters)
  11.    ((loop () () () ()
  12.      ((assign (x) (var_ref a) (constant float (1.000000)))
  13.       (return (constant float (2.000000)))))
  14.     (assign (x) (var_ref b) (constant float (3.000000)))
  15.     (return (constant float (4.000000)))))))
  16. EOF
  17.