OSDN Git Service

* lib/gcc-dg.exp (dg-skip-if): New function.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / cast-qual-1.c
index 5597ccd..407d138 100644 (file)
@@ -2,7 +2,7 @@
    in bad_cast and bad_assign; bad_assign gets the correct warning, but
    good_cast may get the warning instead of bad_cast.
    gcc 2.7.2.3 passes, egcs-1.1.2 and egcs-ss-19990428 fail.
-   http://www.cygnus.com/ml/egcs-bugs/1998-Aug/0635.html */
+   http://gcc.gnu.org/ml/gcc-bugs/1998-08/msg00645.html */
 /* { dg-do compile } */
 /* { dg-options "-Wcast-qual" } */
 void
@@ -28,33 +28,3 @@ bad_assign(const void *bar)
 {
   const char **foo = bar; /* { dg-warning "initialization discards" "discarding `const' warning" } */
 }
-
-typedef struct rtx_def * rtx;
-
-void
-typedef_cast(const void *bar)
-{
-  (const rtx)bar; /* { dg-bogus "cast discards" "discarding `const' warning" } */
-  (const rtx *)bar; /* { dg-warning "cast discards" "discarding `const' warning" } */
-}
-
-void
-typedef_cast2(const rtx bar)
-{
-  (const void *)bar; /* { dg-bogus "cast discards" "discarding `const' warning" } */
-  (const void **)bar; /* { dg-warning "cast discards" "discarding `const' warning" } */
-}
-
-void
-typedef_assign(const void *bar)
-{
-  rtx const *foo1 = bar; /* { dg-bogus "initialization discards" "discarding `const' warning" } */
-  const rtx *foo2 = bar; /* { dg-warning "initialization discards" "discarding `const' warning" } */
-}
-
-void
-typdef_assign2(const rtx bar)
-{
-  void *const *foo1 = bar; /* { dg-bogus "initialization discards" "discarding `const' warning" } */
-  const void **foo2 = bar; /* { dg-warning "initialization discards" "discarding `const' warning" } */
-}