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
6a16a7f0
Commit
6a16a7f0
authored
Nov 01, 2000
by
Richard Henderson
Committed by
Richard Henderson
Nov 01, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New tests.
From-SVN: r37187
parent
f0de0c5d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
68 additions
and
0 deletions
+68
-0
gcc/testsuite/ChangeLog
+6
-0
gcc/testsuite/g++.old-deja/g++.ext/namedret1.C
+12
-0
gcc/testsuite/g++.old-deja/g++.ext/namedret2.C
+20
-0
gcc/testsuite/g++.old-deja/g++.ext/namedret3.C
+30
-0
No files found.
gcc/testsuite/ChangeLog
View file @
6a16a7f0
2000-11-01 Richard Henderson <rth@redhat.com>
* g++.old-deja/g++.ext/namedret1.C: New.
* g++.old-deja/g++.ext/namedret2.C: New.
* g++.old-deja/g++.ext/namedret3.C: New.
2000-10-31 Geoffrey Keating <geoffk@cygnus.com>
* gcc.c-torture/compile/920501-7.c: Remove 'CYGNUS LOCAL' markers.
...
...
gcc/testsuite/g++.old-deja/g++.ext/namedret1.C
0 → 100644
View file @
6a16a7f0
// Special g++ Options: -Wno-deprecated
int
f
(
int
x
)
return
y
(
x
)
{
}
extern
"C"
void
abort
();
int
main
()
{
if
(
f
(
1
)
!=
1
||
f
(
2
)
!=
2
||
f
(
3
)
!=
3
)
abort
();
return
0
;
}
gcc/testsuite/g++.old-deja/g++.ext/namedret2.C
0 → 100644
View file @
6a16a7f0
// Skip if not target: alpha*-*-*
// Special g++ Options: -Wno-deprecated
// This test verifies that return type promotion is working correctly.
// The Alpha ABI specifies that 32-bit return values have bit 31 propagated,
// i.e. the value is sign-extended even if the unpromoted type is unsigned.
unsigned
int
f
(
unsigned
int
x
)
return
y
(
x
)
{
}
extern
"C"
void
abort
();
int
main
()
{
typedef
long
(
*
long_func
)(
long
);
long_func
g
=
reinterpret_cast
<
long_func
>
(
f
);
if
(
g
(
-
1L
)
!=
-
1L
)
abort
();
return
0
;
}
gcc/testsuite/g++.old-deja/g++.ext/namedret3.C
0 → 100644
View file @
6a16a7f0
// Special g++ Options: -Wno-deprecated
extern
"C"
void
abort
();
int
f2
(
int
*
x
)
{
*
x
=
1
;
return
2
;
}
int
f1
()
return
x
{
f2
(
&
x
);
}
void
g
()
{
int
scratch
[
100
];
int
i
;
for
(
i
=
0
;
i
<
100
;
++
i
)
scratch
[
i
]
=
0
;
}
int
main
()
{
g
();
if
(
f1
()
!=
1
)
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