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
87626353
Commit
87626353
authored
Jun 02, 2000
by
Jason Merrill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new
From-SVN: r34361
parent
56ce79f7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
50 additions
and
0 deletions
+50
-0
gcc/testsuite/g++.old-deja/g++.ext/return1.C
+18
-0
gcc/testsuite/g++.old-deja/g++.other/goto3.C
+20
-0
gcc/testsuite/g++.old-deja/g++.pt/infinite1.C
+12
-0
No files found.
gcc/testsuite/g++.old-deja/g++.ext/return1.C
0 → 100644
View file @
87626353
// Test that the named return value extension works when passed as a reference.
// Origin: Jason Merrill <jason@redhat.com>
void
f
(
int
&
i
)
{
i
=
42
;
}
int
g
()
return
r
{
f
(
r
);
}
int
main
()
{
int
i
=
g
();
return
(
i
!=
42
);
}
gcc/testsuite/g++.old-deja/g++.other/goto3.C
0 → 100644
View file @
87626353
// Testcase for various invalid gotos.
// Origin: Jason Merrill <jason@redhat.com>
// Build don't link:
void
f
()
{
goto
foo1
;
// ERROR - jumps
try
{
foo1
:
;
}
catch
(...)
{
}
// ERROR - into try
goto
foo2
;
// ERROR - jumps
try
{
}
catch
(...)
{
foo2
:
;
}
// ERROR - into catch
goto
foo3
;
// ERROR - jumps
{
int
i
=
2
;
foo3
:
;
}
// ERROR - past init
try
{
foo4
:
;
}
catch
(...)
{
}
// ERROR -
goto
foo4
;
// ERROR -
try
{
}
catch
(...)
{
foo5
:
;
}
// ERROR -
goto
foo5
;
// ERROR -
{
int
i
=
2
;
foo6
:
;
}
// ERROR -
goto
foo6
;
// ERROR -
}
gcc/testsuite/g++.old-deja/g++.pt/infinite1.C
0 → 100644
View file @
87626353
// Test for catching infinitely recursive instantiations.
// Origin: Jason Merrill <jason@redhat.com>
template
<
int
i
>
void
f
()
{
f
<
i
+
1
>
();
// ERROR - excessive recursion
}
int
main
()
{
f
<
0
>
();
// ERROR - starting here
}
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