1 //typedef int undef;
   2 extern undef bar(void);
   3 static undef foo(char *c)
   4 {
   5   char p = *c;
   6   switch (p) {
   7   default:
   8     return bar();
   9   }
  10 }
  11 
  12 /*
  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
  25  */