summaryrefslogtreecommitdiff
path: root/src/glsl/tests/lower_jumps/return_void_at_end_of_loop_lower_nothing.opt_test
blob: 0408282d0d51233080e545e849adbefcf5b852d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env bash
#
# This file was generated by create_test_cases.py.
#
# Test that a return of void at the end of a loop is properly
# lowered.
../../glsl_test optpass --quiet --input-ir 'do_lower_jumps(0, 0, 0, 0, 0)' <<EOF
((declare (out) float a) (declare (out) float b)
 (function main
  (signature void (parameters)
   ((loop
     ((assign (x) (var_ref a) (constant float (1.000000))) (return)))
    (assign (x) (var_ref b) (constant float (2.000000)))))))
EOF