URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
/* Test diagnostics for missing and extra semicolons in structures.
|
/* Test diagnostics for missing and extra semicolons in structures.
|
Test with no special options. */
|
Test with no special options. */
|
/* Origin: Joseph Myers <joseph@codesourcery.com> */
|
/* Origin: Joseph Myers <joseph@codesourcery.com> */
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "" } */
|
/* { dg-options "" } */
|
|
|
struct s0 { ; };
|
struct s0 { ; };
|
struct s1 {
|
struct s1 {
|
int a;
|
int a;
|
;
|
;
|
int b;
|
int b;
|
};
|
};
|
struct s2 {
|
struct s2 {
|
;
|
;
|
int c
|
int c
|
}; /* { dg-warning "warning: no semicolon at end of struct or union" } */
|
}; /* { dg-warning "warning: no semicolon at end of struct or union" } */
|
struct s3 {
|
struct s3 {
|
int d
|
int d
|
}; /* { dg-warning "warning: no semicolon at end of struct or union" } */
|
}; /* { dg-warning "warning: no semicolon at end of struct or union" } */
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.