aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/macro_operators.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/macro_operators.sh b/tests/macro_operators.sh
index 57e8564..2954d53 100644
--- a/tests/macro_operators.sh
+++ b/tests/macro_operators.sh
@@ -122,3 +122,13 @@ int main() {
ASSERT_EQ(12, BAZ);
}
EOF
+
+cat <<'EOF' > expected
+foo
+EOF
+
+test_cpp <<'EOF'
+#define CONCAT(x, y) x ## y
+#define CONCAT2(name, r) CONCAT(name, r)
+CONCAT2(foo,)
+EOF