freebsd-nq/test/Sema/default.c
2009-06-02 17:58:47 +00:00

9 lines
196 B
C

// RUN: clang-cc -fsyntax-only -verify %s
void f5 (int z) {
if (z)
default: // expected-error {{not in switch statement}}
; // expected-warning {{if statement has empty body}}
}