expressions: make assign_expression() take an op argument
[smatch.git] / validation / struct-ns2.c
blobc5afbb71aa288bc538a9f089a203129c0963b972
1 static void
2 g (struct Bar { int i; } *x)
4 struct Bar y;
5 y.i = 1;
8 static void
9 h (void)
11 // This is not in scope and should barf loudly.
12 struct Bar y;
13 y.i = 1;
17 * check-name: struct not in scope
18 * check-known-to-fail
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