expressions: make assign_expression() take an op argument
[smatch.git] / validation / badtype2.c
blob49fec87ce0a6ca5a3dac9de188eff912dd44b238
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:7:3: error: not in switch scope
22 badtype2.c:10:1: error: Expected ; at the end of type declaration
23 badtype2.c:10:1: error: got }
24 * check-error-end