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
07b1b030
Commit
07b1b030
authored
Jan 28, 1999
by
Michael Meissner
Committed by
Michael Meissner
Jan 28, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add new test
From-SVN: r24897
parent
5e5c9768
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
0 deletions
+54
-0
gcc/testsuite/gcc.c-torture/ChangeLog
+4
-0
gcc/testsuite/gcc.c-torture/execute/990128-1.c
+50
-0
No files found.
gcc/testsuite/gcc.c-torture/ChangeLog
View file @
07b1b030
1999-01-28 Michael Meissner <meissner@cygnus.com>
* execute/990128-1.c: New test.
1999-01-27 Michael Meissner <meissner@cygnus.com>
1999-01-27 Michael Meissner <meissner@cygnus.com>
* execute/990127-{1,2}.c: New tests.
* execute/990127-{1,2}.c: New tests.
...
...
gcc/testsuite/gcc.c-torture/execute/990128-1.c
0 → 100644
View file @
07b1b030
extern
int
printf
(
const
char
*
,...);
struct
s
{
struct
s
*
n
;
}
*
p
;
struct
s
ss
;
#define MAX 10
struct
s
sss
[
MAX
];
int
count
=
0
;
void
sub
(
struct
s
*
p
,
struct
s
**
pp
);
int
look
(
struct
s
*
p
,
struct
s
**
pp
);
main
()
{
struct
s
*
pp
;
struct
s
*
next
;
int
i
;
p
=
&
ss
;
next
=
p
;
for
(
i
=
0
;
i
<
MAX
;
i
++
)
{
next
->
n
=
&
sss
[
i
];
next
=
next
->
n
;
}
next
->
n
=
0
;
sub
(
p
,
&
pp
);
if
(
count
!=
MAX
+
2
)
abort
();
exit
(
0
);
}
void
sub
(
struct
s
*
p
,
struct
s
**
pp
)
{
for
(
;
look
(
p
,
pp
);
)
{
if
(
p
)
p
=
p
->
n
;
else
break
;
}
}
int
look
(
struct
s
*
p
,
struct
s
**
pp
)
{
for
(
;
p
;
p
=
p
->
n
)
;
*
pp
=
p
;
count
++
;
return
(
1
);
}
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