aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/test3.c
blob: bf53396a3c80b9e660e49d3e1bd39c68e1d05c74 (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
/*
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);
}

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

#if 0
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;}
#endif