projects
/
debian
/
cc1111
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Imported Upstream version 2.9.0
[debian/cc1111]
/
support
/
regression
/
tests
/
uminus.c
1
/* Test unary minus
2
3
lefttype: char, short, long
4
resulttype: char, short, long
5
storage: static,
6
attr: volatile,
7
*/
8
#include <testfwk.h>
9
10
void
11
testUMinus(void)
12
{
13
{storage} {attr} {lefttype} left;
14
{storage} {attr} {resulttype} result;
15
16
left = 53;
17
result = -left;
18
19
ASSERT(result == -53);
20
21
left = -76;
22
result = -left;
23
24
ASSERT(result == 76);
25
}