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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [Wcxx-compat-15.c] - Blame information for rev 749

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

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-Wc++-compat" } */
3
 
4
typedef int myint1;
5
typedef int myint2;
6
typedef int myint3;
7
struct s1
8
{
9
  myint1 myint1;        /* { dg-warning "invalid in C\[+\]\[+\]" } */
10
  myint2 *myint2;       /* { dg-warning "invalid in C\[+\]\[+\]" } */
11
  int myint3;
12
  struct s2
13
  {
14
    myint3 f2;          /* { dg-warning "C\[+\]\[+\]" } */
15
  } f1;
16
};
17
 
18
struct s3
19
{
20
  int myint1;
21
  struct s4
22
  {
23
    int myint1;
24
  } f1;
25
  struct s5
26
  {
27
    int myint1;
28
    struct s6
29
    {
30
      myint1 f4;        /* { dg-warning "C\[+\]\[+\]" } */
31
    } f3;
32
  } f2;
33
};

powered by: WebSVN 2.1.0

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