llvm-for-llvmta/tools/clang/test/Sema/default.c

9 lines
146 B
C
Raw Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 -fsyntax-only -verify %s
void f5 (int z) {
if (z)
default: // expected-error {{not in switch statement}}
;
}