unit_tests/preprocessor/output/concat-operator-stacked-override
author Ryan C. Gordon <icculus@icculus.org>
Wed, 24 Feb 2010 13:18:50 -0500
changeset 863 929ec7cd03e0
permissions -rw-r--r--
Added unit tests for preprocessor's macro concat operator. These fail at the moment.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
863
929ec7cd03e0 Added unit tests for preprocessor's macro concat operator.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     1
// This should produce "RIGHT" and not "WRONG"
929ec7cd03e0 Added unit tests for preprocessor's macro concat operator.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     2
#define WR RI
929ec7cd03e0 Added unit tests for preprocessor's macro concat operator.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     3
#define ONG GHT
929ec7cd03e0 Added unit tests for preprocessor's macro concat operator.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     4
#define REPLACE(WR, ONG) WR##ONG
929ec7cd03e0 Added unit tests for preprocessor's macro concat operator.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     5
#define REPLACE2(WR, ONG) REPLACE(WR, ONG)
929ec7cd03e0 Added unit tests for preprocessor's macro concat operator.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     6
REPLACE2(WR, ONG)
929ec7cd03e0 Added unit tests for preprocessor's macro concat operator.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     7