2021-07-08 10:00:17 +00:00
|
|
|
#include <metal_stdlib>
|
|
|
|
|
|
|
|
using namespace metal;
|
|
|
|
void some_loop_body() {
|
|
|
|
}
|
|
|
|
|
|
|
|
void f() {
|
|
|
|
int j = 0;
|
2021-07-29 13:51:47 +00:00
|
|
|
for(int i = 0; ((i < 5) && (j < 10)); i = as_type<int>((as_type<uint>(i) + as_type<uint>(1)))) {
|
2021-07-08 21:23:33 +00:00
|
|
|
some_loop_body();
|
2021-07-29 13:51:47 +00:00
|
|
|
j = as_type<int>((as_type<uint>(i) * as_type<uint>(30)));
|
2021-07-08 10:00:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|