File: constFoldIntMin.frag

package info (click to toggle)
glslang 16.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 51,720 kB
  • sloc: cpp: 92,305; yacc: 4,320; sh: 603; python: 305; ansic: 94; javascript: 74; makefile: 17
file content (12 lines) | stat: -rw-r--r-- 402 bytes parent folder | download | duplicates (18)
1
2
3
4
5
6
7
8
9
10
11
12
#version 460 core
#extension GL_AMD_gpu_shader_int16 : enable
#extension GL_ARB_gpu_shader_int64 : enable

void a(){
    int16_t u = -32768S / -1S; // SHRT_MIN
    int v = -2147483648 / -1; // INT_MIN
    int64_t w = -9223372036854775808L / -1L; // LLONG_MIN
    int16_t x = -32768S % -1S; // SHRT_MIN
    int y = -2147483648 % -1; // INT_MIN
    int64_t z = -9223372036854775808L % -1L; // LLONG_MIN
}