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
Pick three bugfixes from next branch to trunk for inclusion in 4.5.0 RC2, as discusse...
[sdcc.git]
/
sdcc
/
support
/
regression
/
tests
/
bug-3145.c
blob
5e9228c1999fdff1df83641939f9721e1a533a1e
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
#include <string.h>
8
9
char const
*
a
=
_Generic
(
"bla"
,
char
*:
"blu"
);
// Failed to compile this line due to "bla" being in __code.
10
11
void
testBug
(
void
)
12
{
13
ASSERT
(!
strcmp
(
a
,
"blu"
));
14
}
15