repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Wattributes-10.c: Add -fno-common option on hppa*-*-hpux*.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
debug
/
debug7.C
blob
8731cf81da7b1661676d11238813512be5c14a5c
1
// { dg-do compile }
2
// { dg-prune-output "note" }
3
4
void f (int);
5
6
int
7
main() {
8
9
int a = 4;
10
int b = 5;
11
int (*x)[b] = new int[a][b]; // { dg-error "" }
12
13
x[2][1] = 7;
14
15
for (int i = 0; i < a; ++i)
16
for (int j = 0; j < b; ++j)
17
f (x[i][j]);
18
delete [] x;
19
}