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
c2b83946
Commit
c2b83946
authored
Nov 13, 1999
by
Zack Weinberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test for optimizer bug with -finline-functions.
Reported by Jim Meyering; distilled from bash. From-SVN: r30517
parent
3db377a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
gcc/testsuite/gcc.c-torture/execute/991112-1.c
+19
-0
No files found.
gcc/testsuite/gcc.c-torture/execute/991112-1.c
0 → 100644
View file @
c2b83946
/* This code was miscompiled at -O3 on x86.
Reported by Jim Myering; distilled from bash. */
int
rl_show_char
(
int
c
)
{
return
0
;
}
int
rl_character_len
(
int
c
,
int
pos
)
{
return
isprint
(
c
)
?
1
:
2
;
}
int
main
(
void
)
{
int
(
*
x
)(
int
,
int
)
=
rl_character_len
;
if
(
x
(
'a'
,
1
)
!=
1
)
abort
();
if
(
x
(
'\002'
,
1
)
!=
2
)
abort
();
return
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