projects
/
fw
/
sdcc
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
[fw/sdcc]
/
support
/
regression
/
tests
/
preproc.c
1
/*
2
preproc.c
3
*/
4
5
#include <testfwk.h>
6
7
/*
8
* test for bug 135170
9
*/
10
const char *
11
const_str(void)
12
{
13
return "A"
14
15
16
17
/* just for testing, actually nop */
18
#pragma save
19
20
21
22
23
24
"B";
25
#pragma restore
26
}
27
28
/*
29
* test for bug 982435
30
*/
31
#if !defined (__GNUC__) && !defined (_MSC_VER)
32
/* since this fails on GCC cpp and MSVC cl -E... */
33
#define LO_B(x) ((x) & 0xff)
34
35
unsigned char
36
hexeminus(void)
37
{
38
unsigned char a=0x\
39
fe\
40
-\
41
LO_B(3);
42
return a;
43
}
44
#endif