more cases added
[libfirm] / ir / be / test / vla.c
index 12a7e7c..5c30c97 100644 (file)
@@ -5,7 +5,8 @@
 void f(int x)
 {
        int a[x];
-       for (int i = 0; i < x; ++i) {
+       int i;
+       for (i = 0; i < x; ++i) {
                a[i] = rand();
        }
 }
@@ -14,6 +15,6 @@ void f(int x)
 int main(void)
 {
        srand(23);
-       f(rand());
+       f(rand() & 31);
        return 0;
 }