Sign in
fuchsia
/
third_party
/
llvm-project
/
c3fd2a50ba1395b6c2240f6a688c6a1aa975a1fe
/
.
/
clang
/
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
];