aboutsummaryrefslogtreecommitdiff
path: root/tests/tests2/69_macro_concat.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tests2/69_macro_concat.c')
-rw-r--r--tests/tests2/69_macro_concat.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/tests2/69_macro_concat.c b/tests/tests2/69_macro_concat.c
new file mode 100644
index 0000000..3b16313
--- /dev/null
+++ b/tests/tests2/69_macro_concat.c
@@ -0,0 +1,9 @@
+#include <stdio.h>
+#define hexCh(c/3) (c >= 10 ? 'a' + c - 10 : '0' + c)
+
+int main(void)
+{
+ int c = 0xa;
+ printf("hex: %c\n", hexCh(c));
+ return 0;
+}