aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/struct-ns2.c
blob: 4dd2c3bf0f79a9801a4e0a9ef1737d1e5e447800 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
static void
g (struct Bar { int i; } *x)
{
  struct Bar y;
  y.i = 1;
}

static void
h (void)
{
  // This is not in scope and should barf loudly.
  struct Bar y;
  y.i = 1;
}

/*
 * check-name: struct not in scope
 * check-known-to-fail
 */