aboutsummaryrefslogtreecommitdiff
path: root/tests/pp/14.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pp/14.c')
-rw-r--r--tests/pp/14.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/pp/14.c b/tests/pp/14.c
new file mode 100644
index 0000000..8611479
--- /dev/null
+++ b/tests/pp/14.c
@@ -0,0 +1,11 @@
+extern int printf(const char *format, ...);
+#define P ++
+#define n(x) x
+
+int main(void)
+{
+ int a = 0, b = -1;
+ int i1 = a P+P b;
+ printf("i1 = %d\n", i1);
+ return n(0x1e)n(-1);
+}