OSDN Git Service

PR testsuite/24841
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / void-cast-1.c
1 /* Don't warn where the left-hand side of a comma expression is a
2    comma expression whose right-hand side is cast to void.  Bug
3    21159.  */
4 /* Origin: Joseph Myers <joseph@codesourcery.com> */
5 /* { dg-do compile } */
6 /* { dg-options "-Wall" } */
7
8 int a, b, c, d;
9 int e(void) { return (void)a, b; }
10 int f(void) { return (void)a, (void)b, c; }
11 int g(void) { return (void)a, (void)b, (void)c, d; }