param_key: fix container of when no struct member is referenced
[smatch.git] / validation / badtype2.c
blob173dbfda784389891f16c1a43f04d019bd46a4ac
1 //typedef int undef;
2 extern undef bar(void);
3 static undef foo(char *c)
5 char p = *c;
6 switch (p) {
7 default:
8 return bar();
13 * check-name: missing type
14 * check-error-start
15 badtype2.c:2:8: warning: 'undef' has implicit type
16 badtype2.c:2:14: error: Expected ; at end of declaration
17 badtype2.c:2:14: error: got bar
18 badtype2.c:3:14: error: Expected ; at end of declaration
19 badtype2.c:3:14: error: got foo
20 badtype2.c:6:3: error: Trying to use reserved word 'switch' as identifier
21 badtype2.c:6:11: error: missing type declaration for parameter 'p'
22 badtype2.c:7:3: error: not in switch scope
23 badtype2.c:10:1: error: Expected ; at the end of type declaration
24 badtype2.c:10:1: error: got }
25 * check-error-end