aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/17-misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/17-misc.c')
-rw-r--r--test/17-misc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/17-misc.c b/test/17-misc.c
index cec45b4..e6f9d11 100644
--- a/test/17-misc.c
+++ b/test/17-misc.c
@@ -52,6 +52,12 @@ struct S3 {
char q;
};
+int array_const_decay(const char x[3], int i) {
+ static const char y[3] = "11";
+ if (!x) x = y;
+ return x[i];
+}
+
extern int printf(const char *, ...);
#include <assert.h>
#include <string.h>