1static void
2g (struct Bar { int i; } *x)
3{
4  struct Bar y;
5  y.i = 1;
6}
7
8static void
9h (void)
10{
11  // This is not in scope and should barf loudly.
12  struct Bar y;
13  y.i = 1;
14}
15
16/*
17 * check-name: struct not in scope
18 * check-known-to-fail
19 *
20 * check-error-start
21struct-ns2.c:2:11: warning: bad scope for 'struct Bar'
22struct-ns2.c:12:14: error: incomplete type/unknown size for 'y'
23struct-ns2.c:13:5: error: using member 'i' in incomplete 'struct Bar'
24 * check-error-end
25 */
26