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
863878b2
Commit
863878b2
authored
Aug 10, 1998
by
Jason Merrill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
From-SVN: r21655
parent
77d7c64b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
4 deletions
+17
-4
gcc/testsuite/g++.old-deja/g++.other/init6.C
+12
-0
gcc/testsuite/g++.old-deja/g++.other/new.C
+1
-1
gcc/testsuite/g++.old-deja/g++.other/new2.C
+1
-1
gcc/testsuite/g++.old-deja/g++.robertl/eb15.C
+2
-1
gcc/testsuite/g++.old-deja/g++.robertl/eb2.C
+1
-1
No files found.
gcc/testsuite/g++.old-deja/g++.other/init6.C
0 → 100644
View file @
863878b2
// Test for default-initialization of POD-structs in functional cast notation.
struct
foo
{
int
a
[
10
];
};
int
main
()
{
foo
f
=
foo
();
int
r
=
0
;
for
(
int
i
=
0
;
i
<
10
;
++
i
)
r
|=
f
.
a
[
i
];
return
r
;
}
gcc/testsuite/g++.old-deja/g++.other/new.C
View file @
863878b2
// Build don't link:
// Build don't link:
typedef
unsigned
int
size_t
;
typedef
__SIZE_TYPE__
size_t
;
inline
void
*
inline
void
*
operator
new
(
size_t
alloc_sz
,
const
char
*
fname
,
unsigned
lineno
)
operator
new
(
size_t
alloc_sz
,
const
char
*
fname
,
unsigned
lineno
)
{
{
...
...
gcc/testsuite/g++.old-deja/g++.other/new2.C
View file @
863878b2
//Build don't link:
//Build don't link:
typedef
unsigned
int
size_t
;
typedef
__SIZE_TYPE__
size_t
;
void
*
operator
new
(
size_t
,
unsigned
int
);
void
*
operator
new
(
size_t
,
unsigned
int
);
struct
X
{
struct
X
{
...
...
gcc/testsuite/g++.old-deja/g++.robertl/eb15.C
View file @
863878b2
// Build don't link:
// Build don't link:
#include<iostream.h>
#include<iostream.h>
#include<stddef.h>
struct
A
{
struct
A
{
A
()
{
A
()
{
cerr
<<
"A constructing
\n
"
;
cerr
<<
"A constructing
\n
"
;
throw
1
;
throw
1
;
}
}
void
*
operator
new
(
unsigned
sz
)
{
void
*
operator
new
(
size_t
sz
)
{
cerr
<<
"A allocated
\n
"
;
cerr
<<
"A allocated
\n
"
;
return
::
operator
new
(
sz
);
return
::
operator
new
(
sz
);
}
}
...
...
gcc/testsuite/g++.old-deja/g++.robertl/eb2.C
View file @
863878b2
// Build don't link:
// Build don't link:
typedef
unsigned
int
size_t
;
typedef
__SIZE_TYPE__
size_t
;
inline
void
*
operator
new
(
size_t
,
void
*
place
)
throw
()
{
return
place
;
}
inline
void
*
operator
new
(
size_t
,
void
*
place
)
throw
()
{
return
place
;
}
struct
A
struct
A
...
...
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