diff options
-rw-r--r-- | test/testcpp.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/testcpp.py b/test/testcpp.py index 2582c03..51508c4 100644 --- a/test/testcpp.py +++ b/test/testcpp.py @@ -45,4 +45,27 @@ class CPPTests(TestCase): else: self.assertMultiLineEqual(out, expected) + def test_concatenation(self): + self.__test_preprocessing("""\ +#define a(x) x##_ +#define b(x) _##x +#define c(x) _##x##_ +#define d(x,y) _##x##y##_ + +a(i) +b(j) +c(k) +d(q,s)""" + , """\ + + + + + +i_ +_j +_k_ +_qs_""" + ) + main() |