aboutsummaryrefslogtreecommitdiff
path: root/tinycc/tests/tests2/122_vla_reuse.c
diff options
context:
space:
mode:
Diffstat (limited to 'tinycc/tests/tests2/122_vla_reuse.c')
-rw-r--r--tinycc/tests/tests2/122_vla_reuse.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/tinycc/tests/tests2/122_vla_reuse.c b/tinycc/tests/tests2/122_vla_reuse.c
deleted file mode 100644
index feb47de..0000000
--- a/tinycc/tests/tests2/122_vla_reuse.c
+++ /dev/null
@@ -1,31 +0,0 @@
-#include <stdio.h>
-
-int
-main (void)
-{
- int n = 0;
- int first=1;
- int *p[101];
- if (0) {
- lab:;
- }
- int x[n % 100 + 1];
- if (first == 0) {
- if (&x[0] != p[n % 100 + 1]) {
- printf ("ERROR: %p %p\n", &x[0], p[n % 100 + 1]);
- return(1);
- }
- }
- else {
- p[n % 100 + 1] = &x[0];
- first = n < 100;
- }
- x[0] = 1;
- x[n % 100] = 2;
- n++;
- if (n < 100000)
- goto lab;
- printf ("OK\n");
- return 0;
-}
-