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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.dg/] [struct-semi-1.c] - Diff between revs 298 and 338

Only display areas with differences | Details | Blame | View Log

Rev 298 Rev 338
/* 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 "no semicolon at end of struct or union" } */
}; /* { dg-warning "no semicolon at end of struct or union" } */
struct s3 {
struct s3 {
  int d
  int d
}; /* { dg-warning "no semicolon at end of struct or union" } */
}; /* { dg-warning "no semicolon at end of struct or union" } */
 
 

powered by: WebSVN 2.1.0

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