[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Sema / short-enums.c
blob464b09ee10544cb2bf85fa3ba1260c3920df2a5f
1 // RUN: not %clang_cc1 -fsyntax-only %s -verify
2 // RUN: %clang_cc1 -triple %itanium_abi_triple -fshort-enums -fsyntax-only %s -verify
3 // expected-no-diagnostics
5 enum x { A };
6 int t0[sizeof(enum x) == 1 ? 1 : -1];