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
8cb5e385
Commit
8cb5e385
authored
Mar 29, 2000
by
Jason Merrill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
up
From-SVN: r32818
parent
6ab1432e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
0 deletions
+45
-0
gcc/testsuite/g++.old-deja/g++.other/badopt1.C
+2
-0
gcc/testsuite/g++.old-deja/g++.other/crash15.C
+43
-0
No files found.
gcc/testsuite/g++.old-deja/g++.other/badopt1.C
View file @
8cb5e385
// Based on a testcase by Bryan Weston <bryanw@bluemoon.sps.mot.com>
// egcs 1.1 fails to increment count
// Special g++ Options: -O2
#include <cstdlib>
struct
Base
{
Base
()
{}
};
// removing the constructor fixes the problem
...
...
gcc/testsuite/g++.old-deja/g++.other/crash15.C
0 → 100644
View file @
8cb5e385
// g++ crashed because we unsaved the TARGET_EXPR for the return value
// for get_allocator without first expanding it, because it was part of the
// cleanup for the temporary string.
// Derived from libstdc++ v3 code.
// Special g++ Options: -O2
// Build don't link:
class
AA
{};
void
fee
(
const
AA
&
);
class
basic_string
{
public
:
basic_string
(
const
char
*
);
~
basic_string
()
{
fee
(
this
->
get_allocator
());
}
AA
get_allocator
();
};
class
failure
{
public
:
failure
(
const
basic_string
&
__str
);
};
class
foo
{
public
:
foo
(
int
x
)
{
throw
failure
(
""
);
}
};
void
test05
()
{
foo
ofs
(
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