diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/delete2.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/delete2.C | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/delete2.C b/gcc/testsuite/g++.old-deja/g++.other/delete2.C deleted file mode 100644 index d90def03a3f..00000000000 --- a/gcc/testsuite/g++.old-deja/g++.other/delete2.C +++ /dev/null @@ -1,13 +0,0 @@ -// Build don't link: - -struct foo { - operator char*() const; -}; - -void bar(foo a) { - delete a; // should be accepted - delete[] a; // should be accepted - char b[1]; - delete b; // ERROR - expecting pointer type - delete[] b; // ERROR - expecting pointer type -} |