blob: ea3fe7278f2d0ac6823c0118492f68df5f3dce65 [file] [log] [blame]
/* **********************************************************
* Copyright (c) 2013 Google, Inc. All rights reserved.
* **********************************************************/
/* Dr. Memory: the memory debugger
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation;
* version 2.1 of the License, and no later version.
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include <iostream>
static void
test_nomismatch()
{
/* i#1233: there should be no mismatch here, but asymmetric operator
* stubs combined with no symbols will result in a mismatch unless
* DrMem disables mismatch checking!
*/
int **x = new int *[7];
delete [] x;
}
int
main()
{
test_nomismatch();
std::cout << "done" << std::endl;
return 0;
}