shithub: scc

Download patch

ref: ac6e94fdddcf0f9584223e1dfc356c940eb2ed18
parent: e368ea74750a5dae1f0d9fe8f78de474c559229f
author: Roberto E. Vargas Caballero <[email protected]>
date: Wed May 11 12:52:25 EDT 2016

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

--- /dev/null
+++ b/cc1/tests/test061.c
@@ -1,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);
+}