diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/17-misc.c | 6 |
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> |