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
a5de05b7
Commit
a5de05b7
authored
Sep 11, 2000
by
Robert Lipe
Committed by
Robert Lipe
Sep 11, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gcc.dg/pragma-align.c: New test.
From-SVN: r36323
parent
52a21fc6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
0 deletions
+45
-0
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/gcc.dg/pragma-align.c
+41
-0
No files found.
gcc/testsuite/ChangeLog
View file @
a5de05b7
2000-09-11 Robert Lipe <robertl@sco.com>
* gcc.dg/pragma-align.c: New test.
2000-09-11 Nathan Sidwell <nathan@codesourcery.com>
2000-09-11 Nathan Sidwell <nathan@codesourcery.com>
* g++.old-deja/g++.pt/explicit82.C: New test.
* g++.old-deja/g++.pt/explicit82.C: New test.
...
...
gcc/testsuite/gcc.dg/pragma-align.c
0 → 100644
View file @
a5de05b7
/* Prove that HANDLE_SYSTEMV_PRAGMA alignment handling works somewhat. */
/* { dg-do compile { target i?86-*-linux* i?86-*-*bsd* i?86-*-sco3.2v5* } } */
struct
{
char
one
;
long
two
;
}
defaultalign
;
#pragma pack(4)
struct
{
char
one
;
long
two
;
}
sixteen
;
#pragma pack(1)
struct
{
char
one
;
long
two
;
}
two
;
#pragma pack(2)
struct
{
char
one
;
long
two
;
}
three
;
#pragma pack()
struct
{
char
one
;
long
two
;
}
resetalign
;
main
()
{
if
(
sizeof
(
sixteen
)
<
sizeof
(
defaultalign
))
abort
();
if
(
sizeof
(
two
)
>=
sizeof
(
defaultalign
))
abort
();
if
(
sizeof
(
three
)
<=
sizeof
(
two
))
abort
();
if
(
sizeof
(
resetalign
)
!=
sizeof
(
defaultalign
))
abort
();
}
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