PR tree-optimization/83369 - Missing diagnostics during inlining
[official-gcc.git] / gcc / testsuite / gcc.dg / void-cast-1.c
blobbd4e7b3bf7aca0b40c17b86c1996541fcc074378
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" } */
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; }