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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [lookup/] [struct1.C] - Blame information for rev 698

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

Line No. Rev Author Line
1 693 jeremybenn
// Various struct lookup tests.  We didn't used to complain about
2
// the definition of C.
3
 
4
struct A;
5
typedef struct A B;             // { dg-message "previous declaration" }
6
struct B;                       // { dg-error "using typedef-name" }
7
 
8
typedef struct { int i; } C;    // { dg-message "previous declaration" }
9
struct C;                       // { dg-error "using typedef-name" }
10
 
11
struct D;
12
typedef struct D D;
13
typedef struct D { int i; } D;
14
typedef struct D D;

powered by: WebSVN 2.1.0

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