llvm-for-llvmta/tools/clang/test/Sema/short-enums.c

7 lines
214 B
C
Raw Permalink Normal View History

2022-04-25 13:02:35 +02:00
// RUN: not %clang_cc1 -fsyntax-only %s -verify
// RUN: %clang_cc1 -triple %itanium_abi_triple -fshort-enums -fsyntax-only %s -verify
// expected-no-diagnostics
enum x { A };
int t0[sizeof(enum x) == 1 ? 1 : -1];