repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git]
/
clang
/
test
/
Sema
/
short-enums.c
blob
464b09ee10544cb2bf85fa3ba1260c3920df2a5f
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
4
5
enum
x
{
A
};
6
int
t0
[
sizeof
(
enum
x
) ==
1
?
1
: -
1
];