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-3802.c
blob
bafbaaf976ddcc4b5a58fd8108c6af5183a50b13
1
/** bug-3802.c: False positive type conversion error involving nullptr
2
*/
3
4
#include <testfwk.h>
5
6
#ifdef __SDCC
7
_Pragma
(
"std_c23"
)
8
#endif
9
10
void
testBug
(
void
)
11
{
12
#ifdef __SDCC
13
const char
*
nullCharPtr
=
nullptr
;
14
ASSERT
(
nullCharPtr
==
nullptr
);
15
#endif
16
}