freebsd-dev/test/Sema/default.c

9 lines
198 B
C
Raw Normal View History

2010-01-01 10:34:51 +00:00
// RUN: %clang_cc1 -fsyntax-only -verify %s
2009-06-02 17:58:47 +00:00
void f5 (int z) {
if (z)
default: // expected-error {{not in switch statement}}
; // expected-warning {{if statement has empty body}}
}