aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/test_macro_operators.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_macro_operators.sh')
-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);