URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 298 |
Rev 384 |
/* Test diagnostics for structure member with no type specifier or
|
/* Test diagnostics for structure member with no type specifier or
|
declarator. Test with -pedantic-errors. */
|
declarator. Test with -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 s {
|
struct s {
|
int a;
|
int a;
|
const; /* { dg-error "ISO C forbids member declarations with no members" } */
|
const; /* { dg-error "ISO C forbids member declarations with no members" } */
|
};
|
};
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.