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
blob5e9228c1999fdff1df83641939f9721e1a533a1e
1 /*
2 bug-3254.c. A bug in _Generic handling of implicitly assigned intrinsic named address spaces.
3 */
5 #include <testfwk.h>
7 #include <string.h>
9 char const* a = _Generic("bla", char*: "blu"); // Failed to compile this line due to "bla" being in __code.
11 void testBug(void)
13 ASSERT(!strcmp(a, "blu"));