diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/void-cast-2.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/void-cast-2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/gcc.dg/void-cast-2.c b/gcc/testsuite/gcc.dg/void-cast-2.c index c51e91aaf62..7accebfb755 100644 --- a/gcc/testsuite/gcc.dg/void-cast-2.c +++ b/gcc/testsuite/gcc.dg/void-cast-2.c @@ -4,5 +4,5 @@ /* { dg-do compile } */ /* { dg-options "-Wall" } */ int a, b, c, d; -int e(void) { return (char)a, b; } /* { dg-warning "warning: left-hand operand of comma expression has no effect" } */ -int f(void) { return (a ? (void)b : (void)c), d; } /* { dg-warning "warning: left-hand operand of comma expression has no effect" } */ +int e(void) { return (char)a, b; } /* { dg-warning "left-hand operand of comma expression has no effect" } */ +int f(void) { return (a ? (void)b : (void)c), d; } /* { dg-warning "left-hand operand of comma expression has no effect" } */ |