summaryrefslogtreecommitdiff
path: root/support/regression/tests/bug-2492.c
blob: 605e2eef6eeda73b4f2466ea85cb0b2689b424a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
   bug-2254.c a bug in stm8 code generation for jumps on immediates
 */

#include <testfwk.h>

short int isArmed(void)
{
    return 1;
}

int bug(void)
{
    if (!isArmed)
        return 0;
    else
        return 1;
}

void testBug(void)
{
	ASSERT(bug());
}