X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=support%2Fregression%2Ftests%2Fcritical.c;h=2d66520e678802cd73b975a1ff07140f7e3a3158;hb=eee58a59c8b9e732b0248e08e023b69c3ea41b16;hp=918cbdb4430ce406777abf3b434c7d6e152ddab3;hpb=6a370e6ab695babec796a8f30b7a03a6bc9dc77d;p=fw%2Fsdcc diff --git a/support/regression/tests/critical.c b/support/regression/tests/critical.c index 918cbdb4..2d66520e 100644 --- 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 }; +int y; unsigned int get_global (void) critical { @@ -52,6 +53,10 @@ testCritical(void) } //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