URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 816 |
Rev 826 |
/* Test diagnostics for empty structures and unions. Test with
|
/* Test diagnostics for empty structures and unions. Test with
|
-pedantic-errors. */
|
-pedantic-errors. */
|
/* Origin: Joseph Myers <joseph@codesourcery.com> */
|
/* Origin: Joseph Myers <joseph@codesourcery.com> */
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-pedantic-errors" } */
|
/* { dg-options "-pedantic-errors" } */
|
|
|
struct s0 {}; /* { dg-error "struct has no members" } */
|
struct s0 {}; /* { dg-error "struct has no members" } */
|
union u0 {}; /* { dg-error "union has no members" } */
|
union u0 {}; /* { dg-error "union has no members" } */
|
struct s1 { int : 1; }; /* { dg-error "struct has no named members" } */
|
struct s1 { int : 1; }; /* { dg-error "struct has no named members" } */
|
union u1 { int : 1; }; /* { dg-error "union has no named members" } */
|
union u1 { int : 1; }; /* { dg-error "union has no named members" } */
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.