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
1dde5a4e
Commit
1dde5a4e
authored
Oct 08, 2001
by
DJ Delorie
Committed by
DJ Delorie
Oct 08, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
20011008-1.c: New.
* gcc.dg/20011008-1.c: New. * gcc.dg/20011008-2.c: New. From-SVN: r46087
parent
11064ef9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
0 deletions
+33
-0
gcc/testsuite/ChangeLog
+5
-0
gcc/testsuite/gcc.dg/20011008-1.c
+8
-0
gcc/testsuite/gcc.dg/20011008-2.c
+20
-0
No files found.
gcc/testsuite/ChangeLog
View file @
1dde5a4e
2001-10-08 DJ Delorie <dj@redhat.com>
* gcc.dg/20011008-1.c: New.
* gcc.dg/20011008-2.c: New.
2001-10-08 Neil Booth <neil@daikokuya.demon.co.uk>
* gcc.dg/cpp/spacing1.c: Update test.
...
...
gcc/testsuite/gcc.dg/20011008-1.c
0 → 100644
View file @
1dde5a4e
/* { dg-do compile } */
/* { dg-options "-O0" } */
struct
{
int
;
int
q
;
}
a
;
/* { dg-error "unnamed" } */
struct
{
union
{
int
x
;};
int
q
;
}
b
;
struct
{
struct
{
int
x
;};
int
q
;
}
c
;
union
{
union
{
int
x
;};
int
q
;
}
d
;
union
{
struct
{
int
x
;};
int
q
;
}
e
;
gcc/testsuite/gcc.dg/20011008-2.c
0 → 100644
View file @
1dde5a4e
/* { dg-do run } */
/* { dg-options "-O0" } */
struct
{
union
{
int
x
;
int
y
;};
int
q
;
}
b
;
union
{
struct
{
int
x
;};
int
q
;
}
e
;
main
()
{
b
.
y
=
10
;
b
.
x
=
15
;
if
(
b
.
y
!=
15
)
abort
();
e
.
x
=
10
;
e
.
q
=
15
;
if
(
e
.
x
!=
15
)
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