summaryrefslogtreecommitdiffstats
path: root/vespamalloc/src/tests/doubledelete/doubledelete.cpp
blob: 299583456cfa3884c3a6414e4e8be20fb76a88cb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright 2017 Yahoo Holdings. 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;
}