aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJason Merrill <jason@gcc.gnu.org>2001-10-22 17:56:40 -0400
committerJason Merrill <jason@gcc.gnu.org>2001-10-22 17:56:40 -0400
commitf20a609feb9b6f7c2bd4f6faf792915024d02cf3 (patch)
tree6c5de6b1b3432a9ee3b254cfb1a53ddd1b56c423 /gcc
parentd2740a69f9e7dacf7004542da6816747c7a19283 (diff)
downloadgcc-f20a609feb9b6f7c2bd4f6faf792915024d02cf3.zip
gcc-f20a609feb9b6f7c2bd4f6faf792915024d02cf3.tar.gz
gcc-f20a609feb9b6f7c2bd4f6faf792915024d02cf3.tar.bz2
tweak
From-SVN: r46416
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.law/operators32.C8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.law/operators32.C b/gcc/testsuite/g++.old-deja/g++.law/operators32.C
index daebcef..fcf01bc 100644
--- a/gcc/testsuite/g++.old-deja/g++.law/operators32.C
+++ b/gcc/testsuite/g++.old-deja/g++.law/operators32.C
@@ -3,11 +3,11 @@
#include <iostream>
//
-// frees space allocated for N-D array
+// ffrees space allocated for N-D array
//
template <class T>
-void free(long rows, T** array)
+void ffree(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);
+ ffree(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.*
+ffree(d1, f2);// ERROR - type.*// ERROR - trying to.*
}