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
250ba237
Commit
250ba237
authored
25 years ago
by
Alexandre Oliva
Committed by
Alexandre Oliva
25 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* delete2.C, delete3.C, delete4.C, delete5.C: New tests.
From-SVN: r30607
parent
c7edeea3
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
123 additions
and
0 deletions
+123
-0
gcc/testsuite/g++.old-deja/g++.oliva/ChangeLog
+4
-0
gcc/testsuite/g++.old-deja/g++.oliva/delete2.C
+25
-0
gcc/testsuite/g++.old-deja/g++.oliva/delete3.C
+36
-0
gcc/testsuite/g++.old-deja/g++.oliva/delete4.C
+29
-0
gcc/testsuite/g++.old-deja/g++.oliva/delete5.C
+29
-0
No files found.
gcc/testsuite/g++.old-deja/g++.oliva/ChangeLog
View file @
250ba237
1999-11-21 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
* delete2.C, delete3.C, delete4.C, delete5.C: New tests.
1999-11-19 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
* template7.C: Crash test passes, bug error is now bogus.
...
...
This diff is collapsed.
Click to expand it.
gcc/testsuite/g++.old-deja/g++.oliva/delete2.C
0 → 100644
View file @
250ba237
// Copyright (C) 1999 Free Software Foundation
// by Alexandre Oliva <oliva@lsd.ic.unicamp.br>
// distilled from bug report by Barry M. Caceres <barryc@itravelpartners.com>
// Test whether dtors of vbases are called on delete[].
extern
"C"
void
abort
();
extern
"C"
void
exit
(
int
);
struct
Foo
{
~
Foo
()
{
std
::
exit
(
0
);
}
};
struct
Bar
:
virtual
Foo
{
};
int
main
()
{
delete
[]
new
Bar
[
1
];
std
::
abort
();
}
This diff is collapsed.
Click to expand it.
gcc/testsuite/g++.old-deja/g++.oliva/delete3.C
0 → 100644
View file @
250ba237
// Copyright (C) 1999 Free Software Foundation
// by Alexandre Oliva <oliva@lsd.ic.unicamp.br>
// Test whether dtors of vbases are called on throw within new[].
// Variant of delete2.C.
extern
"C"
void
abort
();
extern
"C"
void
exit
(
int
);
struct
Foo
{
static
bool
first
;
Foo
()
{
if
(
first
)
first
=
false
;
else
throw
first
;
}
~
Foo
()
{
std
::
exit
(
0
);
}
};
bool
Foo
::
first
=
true
;
struct
Bar
:
virtual
Foo
{
};
int
main
()
{
delete
[]
new
Bar
[
2
];
std
::
abort
();
}
This diff is collapsed.
Click to expand it.
gcc/testsuite/g++.old-deja/g++.oliva/delete4.C
0 → 100644
View file @
250ba237
// Copyright (C) 1999 Free Software Foundation
// by Alexandre Oliva <oliva@lsd.ic.unicamp.br>
// Test whether dtors of vbases are called from dtor of aggregate of array.
// Variant of delete2.C and delete3.C.
extern
"C"
void
abort
();
extern
"C"
void
exit
(
int
);
struct
Foo
{
~
Foo
()
{
std
::
exit
(
0
);
}
};
struct
Bar
:
virtual
Foo
{
};
struct
Baz
{
Bar
i
[
1
];
};
int
main
()
{
Baz
();
std
::
abort
();
}
This diff is collapsed.
Click to expand it.
gcc/testsuite/g++.old-deja/g++.oliva/delete5.C
0 → 100644
View file @
250ba237
// Copyright (C) 1999 Free Software Foundation
// by Alexandre Oliva <oliva@lsd.ic.unicamp.br>
// Test whether dtors of vbases are called from dtor of auto array.
// Variant of delete2.C, delete3.C and delete4.C.
extern
"C"
void
abort
();
extern
"C"
void
exit
(
int
);
struct
Foo
{
~
Foo
()
{
std
::
exit
(
0
);
}
};
struct
Bar
:
virtual
Foo
{
};
void
foo
()
{
Bar
i
[
1
];
}
int
main
()
{
foo
();
std
::
abort
();
}
This diff is collapsed.
Click to expand it.
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