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
846f0467
Commit
846f0467
authored
Sep 14, 2001
by
Hans-Peter Nilsson
Committed by
Hans-Peter Nilsson
Sep 14, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gcc.c-torture/execute/20010915-1.c: New test.
From-SVN: r45618
parent
e75ecd26
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
75 additions
and
0 deletions
+75
-0
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/gcc.c-torture/execute/20010915-1.c
+71
-0
No files found.
gcc/testsuite/ChangeLog
View file @
846f0467
2001-09-15 Hans-Peter Nilsson <hp@axis.com>
* gcc.c-torture/execute/20010915-1.c: New test.
2001-09-14 Janis Johnson <janis187@us.ibm.com>
* g77.dg/bprob: New directory.
...
...
gcc/testsuite/gcc.c-torture/execute/20010915-1.c
0 → 100644
View file @
846f0467
/* Bug in reorg.c, deleting the "++" in the last loop in main.
Origin: <hp@axis.com>. */
extern
void
f
(
void
);
extern
int
x
(
int
,
char
**
);
extern
int
r
(
const
char
*
);
extern
char
*
s
(
char
*
,
char
**
);
extern
char
*
m
(
char
*
);
char
*
u
;
char
*
h
;
int
check
=
0
;
int
o
=
0
;
int
main
(
int
argc
,
char
**
argv
)
{
char
*
args
[]
=
{
"a"
,
"b"
,
"c"
,
"d"
,
"e"
};
if
(
x
(
5
,
args
)
!=
0
||
check
!=
2
||
o
!=
5
)
abort
();
exit
(
0
);
}
int
x
(
int
argc
,
char
**
argv
)
{
int
opt
=
0
;
char
*
g
=
0
;
char
*
p
=
0
;
if
(
argc
>
o
&&
argc
>
2
&&
argv
[
o
])
{
g
=
s
(
argv
[
o
],
&
p
);
if
(
g
)
{
*
g
++
=
'\0'
;
h
=
s
(
g
,
&
p
);
if
(
g
==
p
)
h
=
m
(
g
);
}
u
=
s
(
argv
[
o
],
&
p
);
if
(
argv
[
o
]
==
p
)
u
=
m
(
argv
[
o
]);
}
else
abort
();
while
(
++
o
<
argc
)
if
(
r
(
argv
[
o
])
==
0
)
return
1
;
return
0
;
}
char
*
m
(
char
*
x
)
{
abort
();
}
char
*
s
(
char
*
v
,
char
**
pp
)
{
if
(
strcmp
(
v
,
"a"
)
!=
0
||
check
++
>
1
)
abort
;
*
pp
=
v
+
1
;
return
0
;
}
int
r
(
const
char
*
f
)
{
static
char
c
[
2
]
=
"b"
;
static
int
cnt
=
0
;
if
(
*
f
!=
*
c
||
f
[
1
]
!=
c
[
1
]
||
cnt
>
3
)
abort
();
c
[
0
]
++
;
cnt
++
;
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