Preprocessor: Evaluate INT_MIN / -1 to 0.
authorAaron Muir Hamilton <aaron@correspondwith.me>
Wed, 18 Oct 2017 19:33:00 +0000 (19:33 +0000)
committerAaron Muir Hamilton <aaron@correspondwith.me>
Wed, 18 Oct 2017 19:56:19 +0000 (19:56 +0000)
commitdc756a61c8328908c31173a678f89e16946b5a17
treebd60407d1f348f334fa5451fc001830af86a222b
parenta50b107e62b12f2e235270dcc1444abf93fee445
Preprocessor: Evaluate INT_MIN / -1 to 0.

  This division is undefined behaviour which raises SIGFPE on x86.
  Most C++ preprocessors evaluate this silently to 0.
Test/baseResults/cppIntMinOverNegativeOne.frag.out [new file with mode: 0644]
Test/cppIntMinOverNegativeOne.frag [new file with mode: 0644]
glslang/MachineIndependent/preprocessor/Pp.cpp
gtests/AST.FromFile.cpp