17 lines
238 B
C
17 lines
238 B
C
|
/** Simple test for increment
|
||
|
|
||
|
type: signed char, int, long
|
||
|
storage: static,
|
||
|
attr: volatile
|
||
|
*/
|
||
|
#include <testfwk.h>
|
||
|
|
||
|
static void
|
||
|
testIncrement(void)
|
||
|
{
|
||
|
{attr} {storage} {type} i;
|
||
|
i = 0;
|
||
|
i--;
|
||
|
ASSERT(i == -1);
|
||
|
}
|