* gcc.dg/cast-qual-1.c: Revert last change.

From-SVN: r32914
This commit is contained in:
Geoff Keating 2000-04-04 21:49:49 +00:00 committed by Geoffrey Keating
parent 86a44e25ce
commit ace8b01598
2 changed files with 4 additions and 30 deletions

View File

@ -1,3 +1,7 @@
2000-04-04 Geoff Keating <geoffk@cygnus.com>
* gcc.dg/cast-qual-1.c: Revert last change.
2000-04-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* gcc.dg/cast-qual-1.c: Check casts through a pointer typedef.

View File

@ -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" } */
}