aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr39464.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/pr39464.c')
-rw-r--r--gcc/testsuite/gcc.dg/pr39464.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/testsuite/gcc.dg/pr39464.c b/gcc/testsuite/gcc.dg/pr39464.c
index cd74540..021c54e 100644
--- a/gcc/testsuite/gcc.dg/pr39464.c
+++ b/gcc/testsuite/gcc.dg/pr39464.c
@@ -8,10 +8,10 @@ typedef unsigned int U __attribute__((may_alias));
void
foo (void *p)
{
- T *a = (int *) p; /* { dg-warning "initialization from incompatible pointer type" } */
- int *b = (T *) p; /* { dg-warning "initialization from incompatible pointer type" } */
- U *c = (unsigned int *) p; /* { dg-warning "initialization from incompatible pointer type" } */
- unsigned int *d = (U *) p; /* { dg-warning "initialization from incompatible pointer type" } */
+ T *a = (int *) p; /* { dg-bogus "initialization from incompatible pointer type" } */
+ int *b = (T *) p; /* { dg-bogus "initialization from incompatible pointer type" } */
+ U *c = (unsigned int *) p; /* { dg-bogus "initialization from incompatible pointer type" } */
+ unsigned int *d = (U *) p; /* { dg-bogus "initialization from incompatible pointer type" } */
(void) a;
(void) b;
(void) c;