| Index: gcc/gcc/testsuite/gcc.dg/c99-const-expr-2.c
|
| diff --git a/gcc/gcc/testsuite/gcc.dg/c99-const-expr-2.c b/gcc/gcc/testsuite/gcc.dg/c99-const-expr-2.c
|
| index 638f43d920a675b84205fca4f095d46ff0c5d407..a78e412d35ad98507a27cd56146f82fafb44b603 100644
|
| --- a/gcc/gcc/testsuite/gcc.dg/c99-const-expr-2.c
|
| +++ b/gcc/gcc/testsuite/gcc.dg/c99-const-expr-2.c
|
| @@ -36,10 +36,10 @@ foo (void)
|
| {
|
| ASSERT_NPC (0);
|
| ASSERT_NPC ((void *)0);
|
| - ASSERT_NOT_NPC ((void *)(void *)0); /* { dg-bogus "incompatible" "bogus null pointer constant" { xfail *-*-* } } */
|
| - ASSERT_NOT_NPC ((void *)(char *)0); /* { dg-bogus "incompatible" "bogus null pointer constant" { xfail *-*-* } } */
|
| + ASSERT_NOT_NPC ((void *)(void *)0); /* { dg-bogus "incompatible" "bogus null pointer constant" } */
|
| + ASSERT_NOT_NPC ((void *)(char *)0); /* { dg-bogus "incompatible" "bogus null pointer constant" } */
|
| ASSERT_NOT_NPC ((void *)(0, ZERO)); /* { dg-bogus "incompatible" "bogus null pointer constant" } */
|
| - ASSERT_NOT_NPC ((void *)(&"Foobar"[0] - &"Foobar"[0])); /* { dg-bogus "incompatible" "bogus null pointer constant" { xfail *-*-* } } */
|
| + ASSERT_NOT_NPC ((void *)(&"Foobar"[0] - &"Foobar"[0])); /* { dg-bogus "incompatible" "bogus null pointer constant" } */
|
| /* This last one is a null pointer constant in C99 only. */
|
| ASSERT_NPC ((void *)(1 ? 0 : (0, 0)));
|
| }
|
|
|