Sign in
llvm
/
clang
/
943e5a44883539848588e33bffbe2a1773dc4b43
/
.
/
test
/
Sema
/
short-enums.c
blob: 464b09ee10544cb2bf85fa3ba1260c3920df2a5f [
file
] [
log
] [
blame
]
// 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
];