Update travis.yml and tests
[hsc2hs.git] / test / asm / tmp.c
1 struct S { int unused; };
2
3 #define X 1
4 #define Y -1
5
6 // if BOM is 1, we end up with two 32bit integers
7 // where the upper 4 byte ended up in the lower 4.
8 extern unsigned long long ___hsc2hs_BOM___;
9 unsigned long long ___hsc2hs_BOM___ = 0x100000000;
10
11 extern unsigned long long x___hsc2hs_sign___;
12 extern unsigned long long x;
13 unsigned long long x___hsc2hs_sign___ = ((struct S *)X) < 0;
14 unsigned long long x = (unsigned long long)((struct S *)X);
15
16 extern unsigned long long y___hsc2hs_sign___;
17 extern unsigned long long y;
18 unsigned long long y___hsc2hs_sign___ = ((struct S *)Y) < 0;
19 unsigned long long y = (unsigned long long)((struct S *)Y);
20
21 extern unsigned long long z___hsc2hs_sign___;
22 extern unsigned long long z;
23 unsigned long long z___hsc2hs_sign___ = Y < 0;
24 unsigned long long z = (unsigned long long)Y;
25
26 extern char * t;
27 char * t = "Hello World\" 12345";