Searched refs:free (Results 1 - 25 of 2342) sorted by relevance

1234567891011>>

/haiku-buildtools/gcc/gcc/testsuite/gcc.dg/
H A Dfree-1.c5 extern void free (void *);
15 free (p);
16 free (q); /* { dg-warning "attempt to free a non-heap object" } */
17 free (buf2); /* { dg-warning "attempt to free a non-heap object" } */
18 free (&c); /* { dg-warning "attempt to free a non-heap object" } */
19 free (buf3); /* { dg-warning "attempt to free
[all...]
H A Dfree-2.c5 extern void free (void *);
15 free (p);
16 free (q); /* At -O0 no warning is reported here. */
17 free (buf2); /* { dg-warning "attempt to free a non-heap object" } */
18 free (&c); /* { dg-warning "attempt to free a non-heap object" } */
19 free (buf3); /* { dg-warning "attempt to free a non-heap object" } */
20 free (
[all...]
H A Dpr49307.c8 extern void free (void *p);
19 free (p);
H A Dm-un-2.c6 extern void free (void*);
17 free
29 ._free = free,
/haiku-buildtools/gcc/gcc/testsuite/gcc.dg/tm/
H A Dwrap-3.c4 void free (void *);
5 void wrapper (void *) __attribute__((transaction_wrap (free)));
10 __transaction_relaxed { free (p); }
13 /* We still have one call to free()-- on the uninstrumented path
15 /* { dg-final { scan-tree-dump-times "free" 1 "optimized" } } */
/haiku-buildtools/gcc/gcc/testsuite/gcc.target/i386/
H A Davx-vzeroupper-20.c4 extern void free (void *);
10 free(ncstrp);
/haiku-buildtools/gcc/gcc/testsuite/gcc.dg/torture/
H A Dpr59330.c3 void free(void *ptr) function
15 free(p);
/haiku-buildtools/gcc/gcc/testsuite/gcc.dg/lto/
H A D20081109_0.c3 void Foo(void) { char bar[1]; free(bar); }
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/asan/
H A Ddeep-stack-uaf-1.C16 free(char *x) { function in struct:DeepFree
17 DeepFree<depth - 1>::free(x);
24 free(char *x) { function in struct:DeepFree
25 ::free(x);
32 DeepFree<200>::free(x);
36 // { dg-output "ERROR: AddressSanitizer:? heap-use-after-free on address.*(\n|\r\n|\r)" }
/haiku-buildtools/binutils/ld/testsuite/ld-elf/
H A Ddel.cc3 extern "C" void free (void *);
9 free (ptr);
16 free (ptr);
/haiku-buildtools/gcc/gcc/testsuite/objc.dg/
H A Dobjc-fast-4.m10 [o++ free];
/haiku-buildtools/gcc/gcc/testsuite/c-c++-common/asan/
H A Dpr63316.c9 extern void free (void *);
20 free (p);
H A Dsleep-before-dying-1.c4 /* { dg-options "-fno-builtin-malloc -fno-builtin-free" } */
10 free(x);
H A Duse-after-free-1.c2 /* { dg-options "-fno-builtin-malloc -fno-builtin-free" } */
8 free(x);
12 /* { dg-output "ERROR: AddressSanitizer:? heap-use-after-free on address\[^\n\r]*" } */
15 /* { dg-output " #0 0x\[0-9a-f\]+ +(in _*main (\[^\n\r]*use-after-free-1.c:9|\[^\n\r]*:0)|\[(\]).*(\n|\r\n|\r)" } */
18 /* { dg-output " #0 0x\[0-9a-f\]+ +(in _*(interceptor_|wrap_|)free|\[(\])\[^\n\r]*(\n|\r\n|\r)" } */
19 /* { dg-output " #1 0x\[0-9a-f\]+ +(in _*main (\[^\n\r]*use-after-free-1.c:8|\[^\n\r]*:0)|\[(\]).*(\n|\r\n|\r)" } */
22 /* { dg-output " #1 0x\[0-9a-f\]+ +(in _*main (\[^\n\r]*use-after-free-1.c:7|\[^\n\r]*:0)|\[(\])\[^\n\r]*(\n|\r\n|\r)" } */
H A Dstrip-path-prefix-1.c4 /* { dg-options "-fno-builtin-malloc -fno-builtin-free" } */
10 free(x);
14 /* { dg-output "heap-use-after-free.*(\n|\r\n|\r)" } */
H A Dsanity-check-pure-c-1.c2 /* { dg-options "-fno-builtin-malloc -fno-builtin-free" } */
8 free(x);
12 /* { dg-output "heap-use-after-free.*(\n|\r\n|\r)" } */
13 /* { dg-output " #0 \[^\n\r]*(in _*(interceptor_|wrap_)free|\[(\])\[^\n\r]*(\n|\r\n|\r)" } */
/haiku-buildtools/gcc/gcc/testsuite/c-c++-common/tm/
H A Dmalloc.c14 free(q);
15 free(p);
/haiku-buildtools/gcc/gcc/testsuite/g++.old-deja/g++.other/
H A Dwarn01.C6 extern void free (void*);
15 struct vtable mtable = { malloc, free }; // { dg-warning "" } _realloc
/haiku-buildtools/gcc/libstdc++-v3/libsupc++/
H A Ddel_opnt.cc7 // GCC is free software; you can redistribute it and/or modify
29 // A freestanding C runtime may not provide "free" -- but there is no
34 extern "C" void free(void*);
46 std::free(ptr);
H A Ddel_op.cc7 // GCC is free software; you can redistribute it and/or modify
29 // A freestanding C runtime may not provide "free" -- but there is no
34 extern "C" void free(void*);
46 std::free(ptr);
/haiku-buildtools/gcc/fixincludes/tests/base/
H A Dmalloc.h19 void free();
/haiku-buildtools/gcc/libstdc++-v3/testsuite/20_util/headers/cstdlib/
H A Dfunctions_std.cc5 // This file is part of the GNU ISO C++ Library. This library is free
26 using std::free;
/haiku-buildtools/gcc/gcc/testsuite/gcc.c-torture/compile/
H A Dpr34138.c1 extern void free (void *__ptr);
10 free ((void *) (*ap));
11 free ((void *) (param->p));
/haiku-buildtools/legacy/gcc/gcc/cp/
H A Dnew2.cc6 // GNU CC is free software; you can redistribute it and/or modify
30 extern "C" void free (void *);
54 free (ptr);
62 free (ptr);
70 free (ptr);
78 free (ptr);
/haiku-buildtools/legacy/gcc/libchill/
H A Dretmem.c7 GNU CC is free software; you can redistribute it and/or modify
37 * ptr pointer to memory to free
48 * free memory previously allocated by _allocate_(global_)memory
58 free (ptr);

Completed in 115 milliseconds

1234567891011>>