aboutsummaryrefslogtreecommitdiffstats
path: root/vespamalloc/src/tests/doubledelete/doubledelete.cpp
blob: bd04be2da5d647425a68c31f060fdd400fc9787d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <stdlib.h>

void *savedptr;

int main(int argc, char *argv[])
{
    (void) argc;
    (void) argv;
    char * a = new char;
    savedptr = a;
    delete a;
    delete a;
}