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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [debug/] [debug7.C] - Blame information for rev 801

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

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

powered by: WebSVN 2.1.0

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