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
/
bug1788177.c
blob
4d9f7159f8925b5188ff9edd9e1013b6e35364ee
1
/*
2
bug 1788177
3
*/
4
5
#include <testfwk.h>
6
7
#ifdef __SDCC
8
#pragma std_sdcc99
9
#endif
10
11
#include <stdbool.h>
12
13
#ifdef __bool_true_false_are_defined
14
15
bool
var
;
16
17
// no need to call this, it generates compiler error:
18
// Caught signal 11: SIGSEGV
19
void
foo
(
bool
parm
) {
20
var
=
parm
;
21
}
22
23
#endif
24
25
void
26
testBug
(
void
)
27
{
28
ASSERT
(
1
);
29
}