default.c revision a5728872c7702ddd09537c95bc3cbd20e1f2fb09
1// RUN: %clang_cc1 -fsyntax-only -verify %s
2
3void f5 (int z) {
4  if (z)
5    default:  // expected-error {{not in switch statement}}
6      ; // expected-warning {{if statement has empty body}}
7}
8
9