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
1c8d13fe
Commit
1c8d13fe
authored
Apr 10, 2000
by
Jason Merrill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
just return failure
From-SVN: r33067
parent
2bdb0643
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
3 deletions
+1
-3
gcc/testsuite/g++.old-deja/g++.other/badopt1.C
+1
-3
No files found.
gcc/testsuite/g++.old-deja/g++.other/badopt1.C
View file @
1c8d13fe
...
@@ -3,8 +3,6 @@
...
@@ -3,8 +3,6 @@
// Special g++ Options: -O2
// Special g++ Options: -O2
#include <cstdlib>
struct
Base
{
Base
()
{}
};
// removing the constructor fixes the problem
struct
Base
{
Base
()
{}
};
// removing the constructor fixes the problem
struct
Derived
:
Base
{};
// so does removing the base class
struct
Derived
:
Base
{};
// so does removing the base class
...
@@ -13,5 +11,5 @@ int main() {
...
@@ -13,5 +11,5 @@ int main() {
Derived
*
array
[
1
];
// making this Base*[1] does not fix the problem
Derived
*
array
[
1
];
// making this Base*[1] does not fix the problem
array
[
count
++
]
=
new
Derived
();
// but then new Base() does
array
[
count
++
]
=
new
Derived
();
// but then new Base() does
if
(
count
!=
1
)
if
(
count
!=
1
)
std
::
abort
()
;
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