Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
clang
/
a4de17562d13d7a8188108243c4cfbd52f33229a
/
.
/
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
];