ref: bc1d0b048c6c8de00d0b6362ce9a1a624f35349d
parent: 5e6613b52bd4fcbb20614cf8078db86c6a7f4005
author: Roberto E. Vargas Caballero <[email protected]>
date: Wed Aug 16 07:22:00 EDT 2017
[tests] Add 0176-macro.c test
--- /dev/null
+++ b/tests/execute/0176-macro.c
@@ -1,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;
+}
--- 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]