repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
gcc.dg
/
enum3.c
blob
ba3c1da15e3e1c1bba2610284c79144425c321d4
1
/* Test for non-integer enum values. */
2
/* Origin: Joseph Myers <joseph@codesourcery.com> */
3
/* { dg-do compile } */
4
/* { dg-options "" } */
5
6
enum
e
{
E
,
F
};
7
enum
e2
{
8
E1
= (
void
*)
4
,
/* { dg-error "error: enumerator value for 'E1' is not an integer constant" } */
9
E2
= (
enum
e
)
F
,
10
E3
= (
_Bool
)
1
11
};