OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [Wcxx-compat-15.c] - Rev 404

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

/* { dg-do compile } */
/* { dg-options "-Wc++-compat" } */
 
typedef int myint1;
typedef int myint2;
typedef int myint3;
struct s1
{
  myint1 myint1;	/* { dg-warning "invalid in C\[+\]\[+\]" } */
  myint2 *myint2;	/* { dg-warning "invalid in C\[+\]\[+\]" } */
  int myint3;
  struct s2
  {
    myint3 f2;		/* { dg-warning "C\[+\]\[+\]" } */
  } f1;
};
 
struct s3
{
  int myint1;
  struct s4
  {
    int myint1;
  } f1;
  struct s5
  {
    int myint1;
    struct s6
    {
      myint1 f4;	/* { dg-warning "C\[+\]\[+\]" } */
    } f3;
  } f2;
};
 

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.