]> andersk Git - splint.git/blame - test/ulstypes.c
Pushed back constraintResolve.c to the previous version.
[splint.git] / test / ulstypes.c
CommitLineData
885824d3 1unsigned int ui;
2long int li;
3long unsigned short si; /* 1. contradictory qualifiers */
4
5long int f (unsigned int x)
6{
7 long int loli = 12;
8 int loc = 3;
9
10 loc = f (li); /* 2, 3. pass long as unsigned, assign unsigned to int */
11 loc = f (ui); /* 4. assign unsigned to int */
12 loc = f (loc); /* 5, 6. pass int as unsigned, assign unsigned to int */
13
14 loli = loc; /* [7. if -relaxquals] */
15 return x; /* 7. return unsigned int as long int */
16}
17
18unsigned int x1 = 0;
19unsigned int x2 = 23;
20unsigned int x3 = -15; /* 8. assign -15 to unsigned */
21unsigned int x4 = -15U;
22long int x5 = 0L;
23long int x6 = 0;
24short int x7 = 14;
25
This page took 0.069955 seconds and 5 git commands to generate.