* gcc.dg/pragma-init-fini.c: Use dg-warning in lieu of dg-error.
* gcc.dg/pragma-align-2.c: Likewise.
* gcc.dg/format/cmn-err-1.c: Likewise.
From-SVN: r140582
2008-09-23 Eric Botcazou <ebotcazou@adacore.com>
+ * gcc.dg/pragma-init-fini.c: Use dg-warning in lieu of dg-error.
+ * gcc.dg/pragma-align-2.c: Likewise.
+ * gcc.dg/format/cmn-err-1.c: Likewise.
+
+2008-09-23 Eric Botcazou <ebotcazou@adacore.com>
+
* gcc.dg/cpp/cmdlne-dU-16.c: Specify -std=c89 on Solaris.
* gcc.dg/cpp/cmdlne-dU-17.c: Likewise.
cmn_err_func (0, "%p", string);
cmn_err_func (0, "%16b", i, "\01Foo");
- cmn_err_func (0, "%i", i); /* { dg-error "unknown|too many" } */
- cmn_err_func (0, "%d", l); /* { dg-error "expects type" } */
- cmn_err_func (0, "%b"); /* { dg-error "too few" } */
- cmn_err_func (0, "%b", i); /* { dg-error "too few" } */
- cmn_err_func (0, "%b", i, i); /* { dg-error "expects type" } */
- cmn_err_func (0, "%b", string, i); /* { dg-error "expects type" } */
- cmn_err_func (0, "%p", 3); /* { dg-error "expects type" } */
+ cmn_err_func (0, "%i", i); /* { dg-warning "unknown|too many" } */
+ cmn_err_func (0, "%d", l); /* { dg-warning "expects type" } */
+ cmn_err_func (0, "%b"); /* { dg-warning "too few" } */
+ cmn_err_func (0, "%b", i); /* { dg-warning "too few" } */
+ cmn_err_func (0, "%b", i, i); /* { dg-warning "expects type" } */
+ cmn_err_func (0, "%b", string, i); /* { dg-warning "expects type" } */
+ cmn_err_func (0, "%p", 3); /* { dg-warning "expects type" } */
return 0;
}
#pragma align 8(not_defined)
-#pragma align 9(odd_align) /* { dg-error "invalid alignment" } */
-#pragma align 256(high_align) /* { dg-error "invalid alignment" } */
-#pragma align -1(neg_align) /* { dg-error "malformed" } */
-#pragma align bad_align /* { dg-error "malformed" } */
-#pragma align 1(bad_align /* { dg-error "malformed" } */
+#pragma align 9(odd_align) /* { dg-warning "invalid alignment" } */
+#pragma align 256(high_align) /* { dg-warning "invalid alignment" } */
+#pragma align -1(neg_align) /* { dg-warning "malformed" } */
+#pragma align bad_align /* { dg-warning "malformed" } */
+#pragma align 1(bad_align /* { dg-warning "malformed" } */
int x, x1, x2, x4, x8, y8, z8, x16, x32, x64, x128, y128, z128;
-#pragma align 16(x) /* { dg-error "must appear before" } */
+#pragma align 16(x) /* { dg-warning "must appear before" } */
int
main ()
extern void abort ();
-#pragma init /* { dg-error "malformed" } */
-#pragma init () /* { dg-error "malformed" } */
-#pragma init init_func /* { dg-error "malformed" } */
+#pragma init /* { dg-warning "malformed" } */
+#pragma init () /* { dg-warning "malformed" } */
+#pragma init init_func /* { dg-warning "malformed" } */
-#pragma fini /* { dg-error "malformed" } */
-#pragma fini () /* { dg-error "malformed" } */
-#pragma fini fini_func /* { dg-error "malformed" } */
+#pragma fini /* { dg-warning "malformed" } */
+#pragma fini () /* { dg-warning "malformed" } */
+#pragma fini fini_func /* { dg-warning "malformed" } */
#pragma init (init_func, init_static_func)