commit 830e83ac3127699ad53a85f0e4d868040ca38580
parent 608b4b083e9ac4b94fe91609d0914e6472e96292
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Wed, 16 Aug 2017 11:22:00 +0100
[tests] Add 0176-macro.c test
Diffstat:
2 files changed, 22 insertions(+), 0 deletions(-)
diff --git a/tests/execute/0176-macro.c b/tests/execute/0176-macro.c
@@ -0,0 +1,21 @@
+#ifdef __STDC__
+#define __(proto) proto
+#else
+#define __(proto) ()
+#endif
+
+extern int func __((int, int));
+
+int
+main()
+{
+ int (*fun)(int,int) = func;
+
+ return (*func)(1, 2);
+}
+
+int
+func(int a, int b)
+{
+ return a - b - 1;
+}
diff --git a/tests/execute/scc-tests.lst b/tests/execute/scc-tests.lst
@@ -166,3 +166,4 @@
0173-macro.c [TODO]
0174-decay.c [TODO]
0175-defined.c [TODO]
+0176-macro.c [TODO]