C++: Add test with VLA.

This commit is contained in:
Mathias Vorreiter Pedersen
2023-03-29 13:58:24 +01:00
parent 2ef1743bf4
commit d4746e0508
9 changed files with 86 additions and 0 deletions

View File

@@ -396,4 +396,20 @@ int FusedBlockPhiOperand(int x, int y, int z, bool b1) {
}
return ret;
}
void vla(int n1, int n2, int n3, bool b1) {
int b[n1];
int c[n1][n2];
*b = 0;
b[0] = 1;
**(c + 1) = 0;
if(b1) {
int b[n1];
} else {
int b[n2];
}
}