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
41bd0db1
Commit
41bd0db1
authored
Dec 15, 1999
by
Nathan Sidwell
Committed by
Nathan Sidwell
Dec 15, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* g++.old-deja/g++.warn/cast-align1.C: New test.
From-SVN: r30953
parent
8be7ab5d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
0 deletions
+32
-0
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/g++.old-deja/g++.warn/cast-align1.C
+28
-0
No files found.
gcc/testsuite/ChangeLog
View file @
41bd0db1
1999-12-15 Nathan Sidwell <nathan@acm.org>
* g++.old-deja/g++.warn/cast-align1.C: New test.
1999-12-14 Bernd Schmidt <bernds@cygnus.co.uk>
1999-12-14 Bernd Schmidt <bernds@cygnus.co.uk>
* gcc.dg/991214-1.c: New test.
* gcc.dg/991214-1.c: New test.
...
...
gcc/testsuite/g++.old-deja/g++.warn/cast-align1.C
0 → 100644
View file @
41bd0db1
// Build don't link:
// Skip if not target: sparc-*-*
// Special g++ Options: -ansi -pedantic-errors -Wcast-align
// Copyright (C) 1999 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 7 Dec 1999 <nathan@acm.org>
// converting a T * to void * does not need a complete T, and doesn't
// increase alignment requirements.
struct
X
;
struct
Y
;
struct
Z
{
double
m
;};
void
f3
(
X
*
xp
,
Z
*
zp
)
{
(
void
*
)
xp
;
(
void
*
)
zp
;
(
Y
*
)
xp
;
(
Y
*
)
zp
;
(
Z
*
)
xp
;
}
void
f4
(
char
*
ptr
)
{
(
Z
*
)
ptr
;
// WARNING - alignment
}
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