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 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131
|
#include "test.h"
typedef struct StRegSized {
unsigned char r;
} StRegSized;
void func1(int a, int b, int c, int d, StRegSized st) {
ASSERT(1, a);
ASSERT(2, b);
ASSERT(3, c);
ASSERT(4, d);
ASSERT(99, st.r);
}
void func2(int a, int b, int c, int d, int e, StRegSized st) {
ASSERT(1, a);
ASSERT(2, b);
ASSERT(3, c);
ASSERT(4, d);
ASSERT(5, e);
ASSERT(99, st.r);
}
void func3(int a, int b, int c, int d, int e, int f, StRegSized st) {
ASSERT(1, a);
ASSERT(2, b);
ASSERT(3, c);
ASSERT(4, d);
ASSERT(5, e);
ASSERT(6, f);
ASSERT(99, st.r);
}
void func4(int a, int b, int c, int d, int e, int f, int g, StRegSized st) {
ASSERT(1, a);
ASSERT(2, b);
ASSERT(3, c);
ASSERT(4, d);
ASSERT(5, e);
ASSERT(6, f);
ASSERT(7, g);
ASSERT(99, st.r);
}
void func5(int a, int b, int c, StRegSized st) {
ASSERT(1, a);
ASSERT(2, b);
ASSERT(3, c);
ASSERT(99, st.r);
}
void func6(int a, int b, StRegSized st) {
ASSERT(1, a);
ASSERT(2, b);
ASSERT(99, st.r);
}
void func7(int a, StRegSized st) {
ASSERT(1, a);
ASSERT(99, st.r);
}
void func8(int a, int b, int c, StRegSized st, int d) {
ASSERT(1, a);
ASSERT(2, b);
ASSERT(3, c);
ASSERT(99, st.r);
ASSERT(4, d);
}
void func9(int a, int b, StRegSized st, int c, int d) {
ASSERT(1, a);
ASSERT(2, b);
ASSERT(99, st.r);
ASSERT(3, c);
ASSERT(4, d);
}
void funca(int a, StRegSized st, int b, int c, int d) {
ASSERT(1, a);
ASSERT(99, st.r);
ASSERT(2, b);
ASSERT(3, c);
ASSERT(4, d);
}
void funcb(int a, StRegSized st, int b, StRegSized st2, int c) {
ASSERT(1, a);
ASSERT(99, st.r);
ASSERT(2, b);
ASSERT(98, st2.r);
ASSERT(3, c);
}
void funcc(int a, StRegSized st, int b, StRegSized st2, StRegSized st3) {
ASSERT(1, a);
ASSERT(99, st.r);
ASSERT(2, b);
ASSERT(98, st2.r);
ASSERT(97, st3.r);
}
void funcd(int a, StRegSized st, int b, StRegSized st2, StRegSized st3, int c) {
ASSERT(1, a);
ASSERT(99, st.r);
ASSERT(2, b);
ASSERT(98, st2.r);
ASSERT(97, st3.r);
ASSERT(3, c);
}
int main(void) {
StRegSized x = {99};
StRegSized y = {98};
StRegSized z = {97};
func1(1, 2, 3, 4, x);
func2(1, 2, 3, 4, 5, x);
func3(1, 2, 3, 4, 5, 6, x);
func4(1, 2, 3, 4, 5, 6, 7, x);
func5(1, 2, 3, x);
func6(1, 2, x);
func7(1, x);
func8(1, 2, 3, x, 4);
func9(1, 2, x, 3, 4);
funca(1, x, 2, 3, 4);
funcb(1, x, 2, y, 3);
funcc(1, x, 2, y, z);
funcd(1, x, 2, y, z, 3);
}
|