repo.or.cz
/
sdcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
struct / union in initializer, RFE #901.
[sdcc.git]
/
sdcc
/
support
/
regression
/
tests
/
bug-3289.c
blob
5db5dddf5010c77e45f942b39c6ea376a3e557ee
1
/*
2
bug-3289.c
3
A bug in the frontend in handling enum scope
4
*/
5
6
#include <testfwk.h>
7
8
void
testBug
(
void
)
9
{
10
enum
{
EV1
=
3
,
EV2
=
13
,
EV3
=
7
};
11
12
volatile
int
test1
;
13
test1
=
EV2
;
//this works as expected
14
volatile
int
test2
;
15
test2
=
EV2
;
//BUG: ==> test.c:8: error 20: Undefined identifier 'EV2'
16
}
17