Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
ee760205
Commit
ee760205
authored
Nov 18, 1999
by
Herman A.J. ten Brugge
Committed by
Jeff Law
Nov 18, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gcc.c-torture/execute/991118-1.c: New test.
From-SVN: r30570
parent
8cb9ab4b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
0 deletions
+49
-0
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/gcc.c-torture/execute/991118-1.c
+45
-0
No files found.
gcc/testsuite/ChangeLog
View file @
ee760205
1999-11-18 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
* gcc.c-torture/execute/991118-1.c: New test.
1999-11-16 Geoffrey Keating <geoffk@cygnus.com>
1999-11-16 Geoffrey Keating <geoffk@cygnus.com>
* g77.f-torture/execute/u77-test.f (wd): Allow for longer
* g77.f-torture/execute/u77-test.f (wd): Allow for longer
...
...
gcc/testsuite/gcc.c-torture/execute/991118-1.c
0 → 100644
View file @
ee760205
struct
tmp
{
long
long
int
pad
:
12
;
long
long
int
field
:
52
;
};
struct
tmp2
{
long
long
int
field
:
52
;
long
long
int
pad
:
12
;
};
struct
tmp
sub
(
struct
tmp
tmp
)
{
tmp
.
field
^=
0x0008765412345678LL
;
return
tmp
;
}
struct
tmp2
sub2
(
struct
tmp2
tmp2
)
{
tmp2
.
field
^=
0x0008765412345678LL
;
return
tmp2
;
}
struct
tmp
tmp
=
{
0x123
,
0x123456789ABCDLL
};
struct
tmp2
tmp2
=
{
0x123456789ABCDLL
,
0x123
};
main
()
{
if
(
sizeof
(
long
long
)
!=
8
)
exit
(
0
);
tmp
=
sub
(
tmp
);
tmp2
=
sub2
(
tmp2
);
if
(
tmp
.
pad
!=
0x123
||
tmp
.
field
!=
0xFFF9551175BDFDB5LL
)
abort
();
if
(
tmp2
.
pad
!=
0x123
||
tmp2
.
field
!=
0xFFF9551175BDFDB5LL
)
abort
();
exit
(
0
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment