void test1(void) {
const int x[] = { 1, 2, 3, 4, 6, 8, 9, 10, 123, 231, 123,23 };
foo(x);
}
void test2(void) {
int x[] = { 1, 2, 3, 4, 6, 8, 9, 10, 123, 231, 123,23, 24 };
foo(x);
}
void test3(void) {
int x[100] = { 0 };
foo(x);
}
void test4(void) {
char a[10] = "asdf";
char b[10] = { "asdf" };
}
union test5u { int i; double d; };
void test5(void) {
union test5u ola = (union test5u) 351;
union test5u olb = (union test5u) 1.0;
}
union test5u test5w = (union test5u)2;
union test5u test5y = (union test5u)73.0;
struct SelectDest {
unsigned char eDest;
unsigned char affinity;
int iParm;
int iMem;
};
void test6(void) {
struct SelectDest x = {1, 2, 3};
test6f(&x);
}
struct test7s { int a; int b; } test7[] = {
{1, 2},
{4},
};
#pragma pack(push, 2)
struct test8s { int f0; char f1; } test8g = {};
struct S {
void (*x) (struct S *);
};
extern struct S *global_dc;
void cp_diagnostic_starter(struct S *);
void init_error(void) {
global_dc->x = cp_diagnostic_starter;
}
typedef struct {
int x5a;
} x5;
typedef struct x2 *x0;
typedef long (*x1)(x0 x0a, x5 x6);
struct x2 {
x1 x4;
};
long x3(x0 x0a, x5 a) {
return x0a->x4(x0a, a);
}