[hackers] [scc] [cc1] Add test for non macro alike functions with paranthesis || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Wed, 11 May 2016 16:57:29 +0200 (CEST)

commit a8037f55854706a8d4c66e71ab14f8f3628ae4ee
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Wed May 11 16:52:25 2016 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Wed May 11 16:52:25 2016 +0200

    [cc1] Add test for non macro alike functions with paranthesis

diff --git a/cc1/tests/test061.c b/cc1/tests/test061.c
new file mode 100644
index 0000000..c50ab5c
--- /dev/null
+++ b/cc1/tests/test061.c
_AT_@ -0,0 +1,22 @@
+/*
+name: TEST061
+description: Test for macros without arguments but with parenthesis
+error:
+output:
+G3 I F "main
+{
+\
+ h #I1
+}
+*/
+
+#define X (2)
+#define L (0)
+#define H (1)
+#define Q(x) x
+
+int
+main(void)
+{
+ return X == L + H + Q(1);
+}
Received on Wed May 11 2016 - 16:57:29 CEST

This archive was generated by hypermail 2.3.0 : Wed May 11 2016 - 17:00:15 CEST