mirror of
https://github.com/mirror/tinycc.git
synced 2025-03-10 08:50:07 +08:00
Fix test 131 for 32 bits targets
This commit is contained in:
parent
a82aff3337
commit
5b28165fbf
@ -1,10 +1,10 @@
|
||||
#include<stdio.h>
|
||||
|
||||
#define DATA 0x1234567890abcd, 0x5a5aa5a5f0f00f0f
|
||||
#define DATA 0x1234567890abcdll, 0x5a5aa5a5f0f00f0fll
|
||||
|
||||
struct s {
|
||||
long int a;
|
||||
long int b;
|
||||
long long int a;
|
||||
long long int b;
|
||||
};
|
||||
|
||||
struct {
|
||||
@ -16,14 +16,14 @@ foo1(void)
|
||||
{
|
||||
struct s d = { DATA };
|
||||
struct s *p = &d;
|
||||
long int x = 0;
|
||||
long long int x = 0;
|
||||
return *p;
|
||||
}
|
||||
|
||||
struct s
|
||||
foo2(void)
|
||||
{
|
||||
long int unused = 0;
|
||||
long long int unused = 0;
|
||||
return gp->d;
|
||||
}
|
||||
|
||||
@ -31,7 +31,7 @@ struct s
|
||||
foo3(void)
|
||||
{
|
||||
struct s d = { DATA };
|
||||
long int unused = 0;
|
||||
long long int unused = 0;
|
||||
return d;
|
||||
}
|
||||
|
||||
@ -40,10 +40,10 @@ main(void)
|
||||
{
|
||||
struct s d;
|
||||
d = foo1();
|
||||
printf("%lx %lx\n", d.a, d.b);
|
||||
printf("%llx %llx\n", d.a, d.b);
|
||||
d = foo2();
|
||||
printf("%lx %lx\n", d.a, d.b);
|
||||
printf("%llx %llx\n", d.a, d.b);
|
||||
d = foo3();
|
||||
printf("%lx %lx\n", d.a, d.b);
|
||||
printf("%llx %llx\n", d.a, d.b);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user