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