commit a8037f55854706a8d4c66e71ab14f8f3628ae4ee
Author: Roberto E. Vargas Caballero <[email protected]>
AuthorDate: Wed May 11 16:52:25 2016 +0200
Commit: Roberto E. Vargas Caballero <[email protected]>
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
@@ -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);
+}