aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/test3.c
blob: 0f84bba9ef2b8df4c0829ece2cbfde8a47fb36d5 (plain) (blame)
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
/*
int test1(int a, int b, int c) {
    return a && b ? c - b ? c - b : a+b : 7;
}
*/

int t(unsigned short *p, short i) {
    return p[i];
}

int shcl(int a, int b) {
    return a << (b+1);
}

int zero() { return 0; }
float fzero() { return 0.0f; }

struct p { long x,y; };
struct p divsh(int a) {
    struct p p;
    p.x = a << (a % 5);
    p.y = a;
    return p;
}

struct bitset { unsigned long long u; };
void
bscopy(struct bitset dst[/*siz*/], const struct bitset src[/*siz*/], unsigned siz)
{
   for (; siz; --siz, ++dst, ++src) dst->u = src->u;
}


long test(long x) {
    return x + (long)"abc";
}

double ff(double x, double y)
{
    return x + y + .5;
}

void testss() {
    extern struct { long x,y; } aa();
    long x = aa().x;
}

long fma(long x, long y) {
return x + (y <<1) - 2147483648;}