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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.mike/] [p7868.C] - Blame information for rev 154

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

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do assemble  }
2
// prms-id: 7868
3
 
4
struct DIAGTYP {
5
};
6
struct DIAGTYP1 {
7
  struct DIAGTYP;       // { dg-error "" } forward declaration
8
  void bar() { new struct DIAGTYP; }    // { dg-error "" } undefined
9
  void foo() { new struct DIAGTYP1; }
10
};
11
 
12
int main () {
13
  struct DIAGTYP;               // { dg-error "" } forward declaration
14
  struct DIAGTYP  *lerror_desc;
15
  lerror_desc= new struct DIAGTYP;      // { dg-error "" } undefined
16
}
17
 
18
void foo () {
19
  struct DIAGTYP  *lerror_desc;
20
  lerror_desc= new struct DIAGTYP;
21
}

powered by: WebSVN 2.1.0

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