summaryrefslogtreecommitdiff
path: root/test/regression/init4.c
blob: 02b0bd5ea1b97e9af3890cfcfc5e5fd85a60212b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* C99-style initializers in the middle of a block */

int g(int x) { return x << 2; }

int f(int x, int y)
{
  int a = x + y;
  {
    y++;
    int b = y - g(x);
    return b * a;
  }
}