unit_tests/preprocessor/output/if-with-embedded-parens
author Ethan Lee <flibitijibibo@flibitijibibo.com>
Wed, 26 Aug 2020 14:37:18 -0400
changeset 1301 79bbc92200dc
parent 1127 4d7716f32464
permissions -rw-r--r--
Write locations for SPIR-V pixel shader outputs
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1127
4d7716f32464 Added a unit test for the previous commit.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     1
// Before hg changeset 91c22d2de774, the preprocessor incorrect thought
4d7716f32464 Added a unit test for the previous commit.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     2
//  that the '+' is a unary operator and would fail to parse the expression.
4d7716f32464 Added a unit test for the previous commit.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     3
#if ((1) + (0) < 12)
4d7716f32464 Added a unit test for the previous commit.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     4
RIGHT
4d7716f32464 Added a unit test for the previous commit.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     5
#else
4d7716f32464 Added a unit test for the previous commit.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     6
WRONG
4d7716f32464 Added a unit test for the previous commit.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     7
#endif