Files
codeql/cpp/ql/test/library-tests/syntax-zoo/vla.c
2019-08-06 14:10:25 +02:00

16 lines
333 B
C

int atoi(const char*);
int main(int argc, char** argv)
{
char* matrix[argc][atoi(argv[1])];
return 0;
}
int getInt(void);
void vla_typedef(void) {
typedef char myType[10 * 4][3 + getInt()][3][90 * getInt()];
myType var;
char c1, c2 = 'x', buf[10 * 4][2 + getInt()][3][80 * getInt()], buf2[getInt()], *ptr = buf;
}