Check handling of arrays of variable sized components.
llvm-svn: 36162
This commit is contained in:
parent
325d93dde4
commit
219044fcbc
|
|
@ -0,0 +1,10 @@
|
|||
// RUN: %llvmgcc -S %s -O2 -o - | grep {ret i8 0}
|
||||
static char c(int n) {
|
||||
char x[2][n];
|
||||
x[1][0]=0;
|
||||
return *(n+(char *)x);
|
||||
}
|
||||
|
||||
char d(void) {
|
||||
return c(2);
|
||||
}
|
||||
Loading…
Reference in New Issue