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++.bugs/] [900406_02.C] - Rev 853

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

// { dg-do run  }
// g++ bug 900406_02

// g++ fails to correctly parse some type specifications within casts.

// This results in incorrect errors being issued.

// These errors are not issued for identical code by either cfront or
// by gcc.

// cfront 2.0 passes this test.

// keywords: syntax, array types, casts

int (*ipp)[];
int (**ippp)[];

int function ()
{
  ipp = (int (*)[]) 0;                  // OK
  ippp = (int (**)[]) 0;                // { dg-bogus "" }  (syntax)
  return 0;
}

int main () { return 0; }

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

powered by: WebSVN 2.1.0

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