projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* device/include/pic16/stdbool.h: removed, since already exists in
[fw/sdcc]
/
support
/
regression
/
tests
/
critical.c
diff --git
a/support/regression/tests/critical.c
b/support/regression/tests/critical.c
index 918cbdb4430ce406777abf3b434c7d6e152ddab3..2d66520e678802cd73b975a1ff07140f7e3a3158 100644
(file)
--- a/
support/regression/tests/critical.c
+++ b/
support/regression/tests/critical.c
@@
-17,6
+17,7
@@
typedef union
//must be at least 2 bytes big and volatile
volatile big global_var = { 0 };
//must be at least 2 bytes big and volatile
volatile big global_var = { 0 };
+int y;
unsigned int get_global (void) critical
{
unsigned int get_global (void) critical
{
@@
-52,6
+53,10
@@
testCritical(void)
}
//check the interrupt has run at all
ASSERT(x.a != 0);
}
//check the interrupt has run at all
ASSERT(x.a != 0);
+
+ critical y = 0;
+ //check the interrupts are still enabled
+ ASSERT(EA);
#else
ASSERT(1);
#endif
#else
ASSERT(1);
#endif