Debian Codegraph @

unittest/mysys/my_malloc-t.c

raw symbols SCIP
1 /* Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
2
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; version 2 of the License.
6
7 This program is distributed in the hope that it will be useful,
8 but WITHOUT ANY WARRANTY; without even the implied warranty of
9 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 GNU General Public License for more details.
11
12 You should have received a copy of the GNU General Public License
13 along with this program; if not, write to the Free Software
14 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1335 USA */
15
16 #include <my_global.h>cxx . . $ `<file>/include/my_global.h`/
17 #include <my_sys.h>cxx . . $ `<file>/include/my_sys.h`/
18 #include "tap.h"cxx . . $ `<file>/unittest/mytap/tap.h`/
19
20 int maincxx . . $ main(afcd3168fc1188a4).(int argc __attribute__((unused)),char *argv[])
21 {
22 void *p;
23 MY_INITcxx . . $ `include/my_sys.h:36:9`!(argv[0]);
24
25 plancxx . . $ plan(d4f767463ce0a6b3).(4);
26
27 p= my_malloccxx . . $ my_malloc(8d3fb5c2f9bd5683).(PSI_NOT_INSTRUMENTEDcxx . . $ `include/mysql/psi/psi_base.h:51:9`!, 0, MYFcxx . . $ `include/my_global.h:986:9`!(0));
28 okcxx . . $ ok(afcfcee7634adf7d).(p != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, "Zero-sized block allocation.");
29
30 p= my_realloccxx . . $ my_realloc(a125c180bd87b47d).(PSI_NOT_INSTRUMENTEDcxx . . $ `include/mysql/psi/psi_base.h:51:9`!, p, 32, MYFcxx . . $ `include/my_global.h:986:9`!(0));
31 okcxx . . $ ok(afcfcee7634adf7d).(p != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, "Reallocated zero-sized block.");
32
33 p= my_realloccxx . . $ my_realloc(a125c180bd87b47d).(PSI_NOT_INSTRUMENTEDcxx . . $ `include/mysql/psi/psi_base.h:51:9`!, p, 16, MYFcxx . . $ `include/my_global.h:986:9`!(0));
34 okcxx . . $ ok(afcfcee7634adf7d).(p != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, "Trimmed block.");
35
36 my_freecxx . . $ my_free(5d22bdacc48458e8).(p);
37 p= NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
38
39 okcxx . . $ ok(afcfcee7634adf7d).((my_freecxx . . $ my_free(5d22bdacc48458e8).(p), 1), "Free NULL pointer.");
40
41 my_endcxx . . $ my_end(d4f767463ce0a6b3).(0);
42 return exit_statuscxx . . $ exit_status(b126dc7c1de90089).();
43 }