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
f20a609f
Commit
f20a609f
authored
Oct 22, 2001
by
Jason Merrill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tweak
From-SVN: r46416
parent
d2740a69
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
gcc/testsuite/g++.old-deja/g++.law/operators32.C
+4
-4
No files found.
gcc/testsuite/g++.old-deja/g++.law/operators32.C
View file @
f20a609f
...
...
@@ -3,11 +3,11 @@
#include <iostream>
//
// frees space allocated for N-D array
// f
f
rees space allocated for N-D array
//
template
<
class
T
>
void
free
(
long
rows
,
T
**
array
)
void
f
f
ree
(
long
rows
,
T
**
array
)
{
for
(
long
i
=
0
;
i
<
rows
;
i
++
)
delete
[]
array
[
i
];
// delete row
...
...
@@ -29,7 +29,7 @@ if( allocate1d(d1, array) != 0 )
{
if
(
allocate1d
(
d2
,
array
[
i
])
==
0
)
{
free
(
i
,
array
);
f
f
ree
(
i
,
array
);
return
array
;
}
}
...
...
@@ -50,6 +50,6 @@ foo() {std::cout << "foo created" << std::endl; }
foo
**
f2
;
allocate2d
(
d1
,
d2
,
f2
);
// ERROR - type.*// ERROR - trying to.*
free
(
d1
,
f2
);
// ERROR - type.*// ERROR - trying to.*
f
f
ree
(
d1
,
f2
);
// ERROR - type.*// ERROR - trying to.*
}
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