foo(void)1*c85f09ccSJohn Levonstatic int foo(void) 2*c85f09ccSJohn Levon { 3*c85f09ccSJohn Levon switch () { 4*c85f09ccSJohn Levon case 0: 5*c85f09ccSJohn Levon return 0; 6*c85f09ccSJohn Levon default: 7*c85f09ccSJohn Levon return 1; 8*c85f09ccSJohn Levon } 9*c85f09ccSJohn Levon } 10*c85f09ccSJohn Levon bar(void)11*c85f09ccSJohn Levonstatic int bar(void) 12*c85f09ccSJohn Levon { 13*c85f09ccSJohn Levon if () 14*c85f09ccSJohn Levon return 0; 15*c85f09ccSJohn Levon else 16*c85f09ccSJohn Levon return 1; 17*c85f09ccSJohn Levon } 18*c85f09ccSJohn Levon 19*c85f09ccSJohn Levon /* 20*c85f09ccSJohn Levon * check-name: empty expression 21*c85f09ccSJohn Levon * 22*c85f09ccSJohn Levon * check-error-start 23*c85f09ccSJohn Levon empty-expr.c:3:17: error: an expression is expected before ')' 24*c85f09ccSJohn Levon empty-expr.c:13:13: error: an expression is expected before ')' 25*c85f09ccSJohn Levon * check-error-end 26*c85f09ccSJohn Levon */ 27