16 lines
315 B
Plaintext
16 lines
315 B
Plaintext
#include <metal_stdlib>
|
|
|
|
using namespace metal;
|
|
kernel void f0() {
|
|
int const a = 2147483647;
|
|
int const b = 1;
|
|
int const c = as_type<int>((as_type<uint>(a) + as_type<uint>(1)));
|
|
return;
|
|
}
|
|
|
|
void f1() {
|
|
int const a = 1;
|
|
int const b = as_type<int>((as_type<uint>((-2147483647 - 1)) - as_type<uint>(a)));
|
|
}
|
|
|