blob: 164abdf850d93d4bdcfe3ed30a4ccb3812a15592 (
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
|
#include <stdio.h>
#include "../lib.h"
int get_st1_value (void);
int get_st2_value (void);
int get_st3_value (void);
int main(void) {
int val;
val = get_st1_value ();
if (val != 5) {
printf("st1 value was %i instead of 5\n", val);
return -1;
}
val = get_st2_value ();
if (val != 4) {
printf("st2 value was %i instead of 4\n", val);
return -2;
}
val = get_st3_value ();
if (val != 3) {
printf("st3 value was %i instead of 3\n", val);
return -3;
}
return 0;
}
|