aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/gnu2y-if-decls-1.c
blob: 65f526e9dc2f4c3eb9b86724e6ad536c08c23a9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* N3356 - if declarations.  */
/* PR c/117019 */
/* { dg-do compile } */
/* { dg-options "-std=gnu2y" } */

void
g ()
{
  if (int i = 42);
  if (int i = 42; i > 10);
  if (int i, j; i = 42);
  switch (int i = 42);
  switch (int i = 42; i);
  switch (int i, j; i = 42);
}