blob: b9d685f54966cfffc289707b77a04f2aa738c811 (
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
/*
bug-3216.c
A bug in r3ka code generation for 32-bit additions in handling iy
*/
#include <testfwk.h>
unsigned long c90base(void);
unsigned long c90lib(void);
unsigned long c90base_score, c90lib_score;
unsigned long stdcbench(void)
{
unsigned long score = 0;
score += c90base_score = c90base();
score += c90lib_score = c90lib();
return(score);
}
unsigned long c90base(void)
{
return 0x01020304ul;
}
unsigned long c90lib(void)
{
return 0x10203040ul;
}
void
testBug (void)
{
ASSERT(stdcbench() == 0x11223344ul);
ASSERT(c90base_score == 0x01020304ul);
ASSERT(c90lib_score == 0x10203040ul);
}
|