mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-01 20:21:23 +00:00
Bug: tint:1581 Change-Id: Ie34ee52bdd4a4c5d45a5f6c0d8d923cc690c8b2c Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/98021 Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Antonio Maiorano <amaiorano@google.com> Reviewed-by: Dan Sinclair <dsinclair@chromium.org>
11 lines
207 B
Plaintext
11 lines
207 B
Plaintext
#include <metal_stdlib>
|
|
|
|
using namespace metal;
|
|
int add_int_min_explicit() {
|
|
int a = (-2147483647 - 1);
|
|
int b = as_type<int>((as_type<uint>(a) + as_type<uint>(1)));
|
|
int c = -2147483647;
|
|
return c;
|
|
}
|
|
|