minix/external/bsd/llvm/dist/clang/test/Sema/short-enums.c

7 lines
186 B
C
Raw Normal View History

// RUN: not %clang_cc1 -fsyntax-only %s -verify
// RUN: %clang_cc1 -fshort-enums -fsyntax-only %s -verify
// expected-no-diagnostics
enum x { A };
int t0[sizeof(enum x) == 1 ? 1 : -1];