| Index: gcc/gcc/testsuite/gcc.dg/c90-const-expr-5.c
|
| diff --git a/gcc/gcc/testsuite/gcc.dg/c90-const-expr-5.c b/gcc/gcc/testsuite/gcc.dg/c90-const-expr-5.c
|
| index 0a5af8124cd3a9b626d5f6c6bba38238e79f0c07..9f5cdef83994890162add3cc3c524c2fca5eb6f1 100644
|
| --- a/gcc/gcc/testsuite/gcc.dg/c90-const-expr-5.c
|
| +++ b/gcc/gcc/testsuite/gcc.dg/c90-const-expr-5.c
|
| @@ -2,7 +2,7 @@
|
| qualified void. */
|
| /* Origin: Joseph Myers <joseph@codesourcery.com> */
|
| /* { dg-do compile } */
|
| -/* { dg-options "-std=iso9899:1990 -pedantic-errors -fshow-column" } */
|
| +/* { dg-options "-std=iso9899:1990 -pedantic-errors" } */
|
|
|
| typedef void V;
|
| int *p;
|
| @@ -15,14 +15,14 @@ f (void)
|
| {
|
| /* (V *)0 is a null pointer constant, so the assignment should be
|
| diagnosed. */
|
| - q = (j ? p : (V *)0); /* { dg-error "3:assignment from incompatible pointer type" } */
|
| - q = (j ? p : (void *)0); /* { dg-error "3:assignment from incompatible pointer type" } */
|
| + q = (j ? p : (V *)0); /* { dg-error "5:assignment from incompatible pointer type" } */
|
| + q = (j ? p : (void *)0); /* { dg-error "5:assignment from incompatible pointer type" } */
|
| /* And this conversion should be valid. */
|
| (void (*)(void))(V *)0;
|
| (void (*)(void))(void *)0;
|
| /* Pointers to qualified void are not valid null pointer
|
| constants. */
|
| - fp = (const void *)0; /* { dg-error "3:ISO C forbids assignment between function pointer and 'void \\*'" } */
|
| + fp = (const void *)0; /* { dg-error "6:ISO C forbids assignment between function pointer and 'void \\*'" } */
|
| fp = (void *)0;
|
| fp = (V *)0;
|
| fp = 0;
|
|
|