diff options
Diffstat (limited to 'test/vla-nested.c')
-rw-r--r-- | test/vla-nested.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/vla-nested.c b/test/vla-nested.c new file mode 100644 index 0000000..176392e --- /dev/null +++ b/test/vla-nested.c @@ -0,0 +1,13 @@ +int l; +int f(int x) { + l += x; + return x; +} +int main(void) { + int r = 0; + int (*p[f(2)])[f(3)]; + r += l != 5; + r += sizeof p != sizeof(int (*[2])[3]); + r += sizeof **p != sizeof(int[3]); + return r; +} |