OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [debug/] [debug7.C] - Blame information for rev 856

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// { 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
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.