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
cdf508e8
Commit
cdf508e8
authored
Sep 09, 1999
by
Richard Henderson
Committed by
Richard Henderson
Sep 09, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* g++.old-deja/g++.other/delete6.C: Use size_t with operator new.
From-SVN: r29237
parent
638e6ebc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/g++.old-deja/g++.other/delete6.C
+3
-3
No files found.
gcc/testsuite/ChangeLog
View file @
cdf508e8
Thu Sep 9 10:40:36 1999 Richard Henderson <rth@cygnus.com>
* g++.old-deja/g++.other/delete6.C: Use size_t with operator new.
Thu Sep 9 12:32:57 BST 1999 Nathan Sidwell <nathan@acm.org>
* g++.old-deja/g++.other/lookup11.C: New test.
...
...
gcc/testsuite/g++.old-deja/g++.other/delete6.C
View file @
cdf508e8
// Origin: Alexander Schiemann (aschiem@count.math.uni-sb.de)
typedef
__SIZE_TYPE__
size_t
;
int
i
;
struct
B
{};
struct
A
{
static
void
*
operator
new
(
unsigned
in
t
)
static
void
*
operator
new
(
size_
t
)
{
return
&
i
;}
inline
static
void
operator
delete
(
void
*
p
);
...
...
@@ -23,5 +25,3 @@ inline void A::operator delete(void*p)
int
main
()
{
A
*
ap
=
new
A
;
delete
ap
;}
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