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-3254.c
blob
1b6f2a56d33d8d1a204d48c03a32c5f5568fdaac
1
/*
2
bug-3254.c. A bug in _Generic handling of implicitly assigned intrinsic named address spaces.
3
*/
4
5
#include <testfwk.h>
6
7
int
i
;
8
9
void
f
(
void
)
10
{
11
i
=
_Generic
(&
i
,
int
* :
1
,
long
* :
2
);
// Failed to compile this line due to &i being __near int *.
12
}
13
14
15
void
testBug
(
void
)
16
{
17
f
();
18
ASSERT
(
i
==
1
);
19
}
20