unit_tests/preprocessor/output/elif-after-macro
author Ethan Lee <flibitijibibo@flibitijibibo.com>
Wed, 26 Aug 2020 14:37:18 -0400
changeset 1301 79bbc92200dc
parent 942 61b18d72632c
permissions -rw-r--r--
Write locations for SPIR-V pixel shader outputs
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
942
61b18d72632c Unit tests for previous fix.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     1
// This triggered an error before, when the "== D0" would not pop_source().
61b18d72632c Unit tests for previous fix.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     2
#define D0 0
61b18d72632c Unit tests for previous fix.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     3
#if DA == D0
61b18d72632c Unit tests for previous fix.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     4
RIGHT
61b18d72632c Unit tests for previous fix.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     5
#elif D5 >= D4
61b18d72632c Unit tests for previous fix.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     6
WRONG
61b18d72632c Unit tests for previous fix.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     7
#else
61b18d72632c Unit tests for previous fix.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     8
ALSOWRONG
61b18d72632c Unit tests for previous fix.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     9
#endif