]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/gcc.dg/attr-invalid.c
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / gcc.dg / attr-invalid.c
diff --git a/gcc/testsuite/gcc.dg/attr-invalid.c b/gcc/testsuite/gcc.dg/attr-invalid.c
deleted file mode 100644 (file)
index a999c26..0000000
+++ /dev/null
@@ -1,58 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "" } */
-
-#define CONCAT_(A,B) A ## B
-#define CONCAT(A,B) CONCAT_(A,B)
-
-#define ATTR __attribute__((AT))
-#define ATSYM(suf) CONCAT (AT, CONCAT_ (_, suf))
-
-#define AT noinline
-
-typedef int ATSYM(type) ATTR; /* { dg-warning "attribute ignored" "" } */
-
-typedef int (*ATSYM(fntype))(void) ATTR; /* { dg-warning "attribute ignored" "" } */
-
-struct ATSYM(struct) {
-  char dummy ATTR; /* { dg-warning "attribute ignored" "" } */
-} ATTR; /* { dg-warning "does not apply to types" "" } */
-
-int ATSYM(var) ATTR;  /* { dg-warning "attribute ignored" "" } */
-
-int ATSYM(fn_knrarg) (arg)
-  int arg ATTR; /* { dg-warning "attribute ignored" "" } */
-{ return 0; }
-
-int ATSYM(fn_isoarg) (int arg ATTR) { return 0; } /* { dg-warning "attribute ignored" "" } */
-
-int ATSYM(fn_vars) (void) {
-  static int svar ATTR; /* { dg-warning "attribute ignored" "" } */
-  auto int lvar ATTR; /* { dg-warning "attribute ignored" "" } */
-  return 0;
-}
-
-
-#undef AT
-#define AT used
-
-typedef int ATSYM(type) ATTR; /* { dg-warning "attribute ignored" "" } */
-
-typedef int (*ATSYM(fntype))(void) ATTR; /* { dg-warning "attribute ignored" "" } */
-
-struct ATSYM(struct) {
-  char dummy ATTR; /* { dg-warning "attribute ignored" "" } */
-} ATTR; /* { dg-warning "does not apply to types" "" } */
-
-int ATSYM(var) ATTR;  /* { dg-warning "attribute ignored" "" } */
-
-int ATSYM(fn_knrarg) (arg)
-  int arg ATTR; /* { dg-warning "attribute ignored" "" } */
-{ return 0; }
-
-int ATSYM(fn_isoarg) (int arg ATTR) { return 0; } /* { dg-warning "attribute ignored" "" } */
-
-int ATSYM(fn_vars) (void) {
-  static int svar ATTR; /* { dg-warning "attribute ignored" "" } */
-  auto int lvar ATTR; /* { dg-warning "attribute ignored" "" } */
-  return 0;
-}