1 static void
   2 g (struct Bar { int i; } *x)
   3 {
   4   struct Bar y;
   5   y.i = 1;
   6 }
   7 
   8 static void
   9 h (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
  21 struct-ns2.c:2:11: warning: bad scope for 'struct Bar'
  22 struct-ns2.c:12:14: error: incomplete type/unknown size for 'y'
  23 struct-ns2.c:13:5: error: using member 'i' in incomplete 'struct Bar'
  24  * check-error-end
  25  */