diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/pointer-arith-8.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/pointer-arith-8.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/testsuite/gcc.dg/pointer-arith-8.c b/gcc/testsuite/gcc.dg/pointer-arith-8.c index 96d4c3343a3..5426b79e260 100644 --- a/gcc/testsuite/gcc.dg/pointer-arith-8.c +++ b/gcc/testsuite/gcc.dg/pointer-arith-8.c @@ -10,8 +10,8 @@ void f(void); void g (void) { - sizeof (v); /* { dg-error "error: invalid application of 'sizeof' to a void type" } */ - sizeof (void); /* { dg-error "error: invalid application of 'sizeof' to a void type" } */ - sizeof (f); /* { dg-error "error: invalid application of 'sizeof' to a function type" } */ - sizeof (void (void)); /* { dg-error "error: invalid application of 'sizeof' to a function type" } */ + sizeof (v); /* { dg-error "invalid application of 'sizeof' to a void type" } */ + sizeof (void); /* { dg-error "invalid application of 'sizeof' to a void type" } */ + sizeof (f); /* { dg-error "invalid application of 'sizeof' to a function type" } */ + sizeof (void (void)); /* { dg-error "invalid application of 'sizeof' to a function type" } */ } |