aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-09-13 15:17:24 +0900
committernsfisis <nsfisis@gmail.com>2025-09-13 15:17:39 +0900
commit08a03629004cf6dd5e3beaab1af422483bb0bd48 (patch)
treef5263262f52cfdb095a7ec0d2713847043eed1e3 /tests
parent3455cf8da6085319fcf1b1159cc5faaf54393a26 (diff)
downloadducc-08a03629004cf6dd5e3beaab1af422483bb0bd48.tar.gz
ducc-08a03629004cf6dd5e3beaab1af422483bb0bd48.tar.zst
ducc-08a03629004cf6dd5e3beaab1af422483bb0bd48.zip
feat: support ## operator with surrounding whitespaces
Diffstat (limited to 'tests')
-rw-r--r--tests/test_macro_operators.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_macro_operators.sh b/tests/test_macro_operators.sh
index f9cc385..e456d4f 100644
--- a/tests/test_macro_operators.sh
+++ b/tests/test_macro_operators.sh
@@ -13,6 +13,8 @@ int var_A = 30;
int number_12 = 12;
+int bazqux = 42;
+
int main () {
printf ( foobar=%d\n, foobar);
printf ( prefix_test=%d\n, prefix_test);
@@ -46,6 +48,9 @@ int MAKE_VAR(A) = 30;
#define NUMBER(x, y) number_##x##y
int NUMBER(1, 2) = 12;
+#define CONCAT2(a, b) a ## b
+int CONCAT2(baz, qux) = 42;
+
int main() {
printf("foobar=%d\n", foobar);
printf("prefix_test=%d\n", prefix_test);