1*c85f09ccSJohn Levon static typeof(undef) a;
2*c85f09ccSJohn Levon 
foo(void)3*c85f09ccSJohn Levon static int foo(void)
4*c85f09ccSJohn Levon {
5*c85f09ccSJohn Levon 	return a;
6*c85f09ccSJohn Levon }
7*c85f09ccSJohn Levon 
8*c85f09ccSJohn Levon /*
9*c85f09ccSJohn Levon  * check-name: typeof-bad
10*c85f09ccSJohn Levon  *
11*c85f09ccSJohn Levon  * check-error-start
12*c85f09ccSJohn Levon typeof-bad.c:1:15: error: undefined identifier 'undef'
13*c85f09ccSJohn Levon typeof-bad.c:5:16: warning: incorrect type in return expression (different base types)
14*c85f09ccSJohn Levon typeof-bad.c:5:16:    expected int
15*c85f09ccSJohn Levon typeof-bad.c:5:16:    got bad type static [toplevel] a
16*c85f09ccSJohn Levon  * check-error-end
17*c85f09ccSJohn Levon  */
18