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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [attr-invalid.c] - Diff between revs 149 and 154

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

Rev 149 Rev 154
/* { dg-do compile } */
/* { dg-do compile } */
/* { dg-options "" } */
/* { dg-options "" } */
 
 
#define CONCAT_(A,B) A ## B
#define CONCAT_(A,B) A ## B
#define CONCAT(A,B) CONCAT_(A,B)
#define CONCAT(A,B) CONCAT_(A,B)
 
 
#define ATTR __attribute__((AT))
#define ATTR __attribute__((AT))
#define ATSYM(suf) CONCAT (AT, CONCAT_ (_, suf))
#define ATSYM(suf) CONCAT (AT, CONCAT_ (_, suf))
 
 
#define AT noinline
#define AT noinline
 
 
typedef int ATSYM(type) ATTR; /* { dg-warning "attribute ignored" "" } */
typedef int ATSYM(type) ATTR; /* { dg-warning "attribute ignored" "" } */
 
 
typedef int (*ATSYM(fntype))(void) ATTR; /* { dg-warning "attribute ignored" "" } */
typedef int (*ATSYM(fntype))(void) ATTR; /* { dg-warning "attribute ignored" "" } */
 
 
struct ATSYM(struct) {
struct ATSYM(struct) {
  char dummy ATTR; /* { dg-warning "attribute ignored" "" } */
  char dummy ATTR; /* { dg-warning "attribute ignored" "" } */
} ATTR; /* { dg-warning "does not apply to types" "" } */
} ATTR; /* { dg-warning "does not apply to types" "" } */
 
 
int ATSYM(var) ATTR;  /* { dg-warning "attribute ignored" "" } */
int ATSYM(var) ATTR;  /* { dg-warning "attribute ignored" "" } */
 
 
int ATSYM(fn_knrarg) (arg)
int ATSYM(fn_knrarg) (arg)
  int arg ATTR; /* { dg-warning "attribute ignored" "" } */
  int arg ATTR; /* { dg-warning "attribute ignored" "" } */
{ return 0; }
{ return 0; }
 
 
int ATSYM(fn_isoarg) (int arg ATTR) { return 0; } /* { dg-warning "attribute ignored" "" } */
int ATSYM(fn_isoarg) (int arg ATTR) { return 0; } /* { dg-warning "attribute ignored" "" } */
 
 
int ATSYM(fn_vars) (void) {
int ATSYM(fn_vars) (void) {
  static int svar ATTR; /* { dg-warning "attribute ignored" "" } */
  static int svar ATTR; /* { dg-warning "attribute ignored" "" } */
  auto int lvar ATTR; /* { dg-warning "attribute ignored" "" } */
  auto int lvar ATTR; /* { dg-warning "attribute ignored" "" } */
  return 0;
  return 0;
}
}
 
 
 
 
#undef AT
#undef AT
#define AT used
#define AT used
 
 
typedef int ATSYM(type) ATTR; /* { dg-warning "attribute ignored" "" } */
typedef int ATSYM(type) ATTR; /* { dg-warning "attribute ignored" "" } */
 
 
typedef int (*ATSYM(fntype))(void) ATTR; /* { dg-warning "attribute ignored" "" } */
typedef int (*ATSYM(fntype))(void) ATTR; /* { dg-warning "attribute ignored" "" } */
 
 
struct ATSYM(struct) {
struct ATSYM(struct) {
  char dummy ATTR; /* { dg-warning "attribute ignored" "" } */
  char dummy ATTR; /* { dg-warning "attribute ignored" "" } */
} ATTR; /* { dg-warning "does not apply to types" "" } */
} ATTR; /* { dg-warning "does not apply to types" "" } */
 
 
int ATSYM(var) ATTR;
int ATSYM(var) ATTR;
 
 
int ATSYM(fn_knrarg) (arg)
int ATSYM(fn_knrarg) (arg)
  int arg ATTR; /* { dg-warning "attribute ignored" "" } */
  int arg ATTR; /* { dg-warning "attribute ignored" "" } */
{ return 0; }
{ return 0; }
 
 
int ATSYM(fn_isoarg) (int arg ATTR) { return 0; } /* { dg-warning "attribute ignored" "" } */
int ATSYM(fn_isoarg) (int arg ATTR) { return 0; } /* { dg-warning "attribute ignored" "" } */
 
 
int ATSYM(fn_vars) (void) {
int ATSYM(fn_vars) (void) {
  static int svar ATTR;
  static int svar ATTR;
  auto int lvar ATTR; /* { dg-warning "attribute ignored" "" } */
  auto int lvar ATTR; /* { dg-warning "attribute ignored" "" } */
  return 0;
  return 0;
}
}
 
 
 
 
/* PR 28287 */
/* PR 28287 */
/* These are invalid on all targets.  Applying to PARM_ or FIELD_DECL
/* These are invalid on all targets.  Applying to PARM_ or FIELD_DECL
   also caused a tree checking ice on targets that support weak,  */
   also caused a tree checking ice on targets that support weak,  */
#undef AT
#undef AT
#define AT weak
#define AT weak
 
 
typedef int ATSYM(type) ATTR; /* { dg-warning "attribute ignored" "" } */
typedef int ATSYM(type) ATTR; /* { dg-warning "attribute ignored" "" } */
 
 
typedef int (*ATSYM(fntype))(void) ATTR; /* { dg-warning "attribute ignored" "" } */
typedef int (*ATSYM(fntype))(void) ATTR; /* { dg-warning "attribute ignored" "" } */
 
 
struct ATSYM(struct) {
struct ATSYM(struct) {
  char dummy ATTR; /* { dg-warning "attribute ignored" "" } */
  char dummy ATTR; /* { dg-warning "attribute ignored" "" } */
};
};
 
 
int ATSYM(fn_knrarg) (arg)
int ATSYM(fn_knrarg) (arg)
  int arg ATTR; /* { dg-warning "attribute ignored" "" } */
  int arg ATTR; /* { dg-warning "attribute ignored" "" } */
{ return 0; }
{ return 0; }
 
 
int ATSYM(fn_isoarg) (int arg ATTR) { return 0; } /* { dg-warning "attribute ignored" "" } */
int ATSYM(fn_isoarg) (int arg ATTR) { return 0; } /* { dg-warning "attribute ignored" "" } */
 
 
 
 
/* PR target/28648  */
/* PR target/28648  */
/* These are invalid on all targets.  Applying to PARM_ or FIELD_DECL
/* These are invalid on all targets.  Applying to PARM_ or FIELD_DECL
   also caused a tree checking ice on targets that support dllimport.  */
   also caused a tree checking ice on targets that support dllimport.  */
#undef AT
#undef AT
#define AT dllimport
#define AT dllimport
 
 
typedef int ATSYM(type) ATTR;  /* { dg-warning "attribute |directive ignored" "" } */
typedef int ATSYM(type) ATTR;  /* { dg-warning "attribute |directive ignored" "" } */
 
 
typedef int (*ATSYM(fntype))(void) ATTR;   /* { dg-warning "attribute |directive ignored" "" } */
typedef int (*ATSYM(fntype))(void) ATTR;   /* { dg-warning "attribute |directive ignored" "" } */
 
 
struct ATSYM(struct) {
struct ATSYM(struct) {
  char dummy ATTR;  /* { dg-warning "attribute |directive ignored" "" } */
  char dummy ATTR;  /* { dg-warning "attribute |directive ignored" "" } */
};
};
 
 
int ATSYM(fn_knrarg) (arg)
int ATSYM(fn_knrarg) (arg)
  int arg ATTR;  /* { dg-warning "attribute |directive ignored" "" } */
  int arg ATTR;  /* { dg-warning "attribute |directive ignored" "" } */
{ return 0; }
{ return 0; }
 
 
int ATSYM(fn_isoarg) (int arg ATTR) { return 0; }  /* { dg-warning "attribute |directive ignored" "" } */
int ATSYM(fn_isoarg) (int arg ATTR) { return 0; }  /* { dg-warning "attribute |directive ignored" "" } */
 
 

powered by: WebSVN 2.1.0

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