repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
debug
/
debug7.C
blob
31d47eda78f4178b62fdaa03432692d017260fe1
1
// { dg-do compile }
2
3
void f (int);
4
5
int
6
main() {
7
8
int a = 4;
9
int b = 5;
10
int (*x)[b] = new int[a][b]; // { dg-error "" }
11
12
x[2][1] = 7;
13
14
for (int i = 0; i < a; ++i)
15
for (int j = 0; j < b; ++j)
16
f (x[i][j]);
17
delete [] x;
18
}